project() should only be called if the subdirectory, in fact, can be built standalone.
24 lines
704 B
CMake
24 lines
704 B
CMake
###############################################
|
|
### tests_configuration ###
|
|
###############################################
|
|
|
|
add_executable(tests_configuration
|
|
test_configuration.cpp
|
|
test_json.cpp
|
|
)
|
|
|
|
set_target_properties(tests_configuration PROPERTIES FOLDER tests/configuration)
|
|
|
|
target_link_libraries(tests_configuration PRIVATE
|
|
DRAMSys::config
|
|
gtest_main
|
|
)
|
|
|
|
gtest_discover_tests(tests_configuration
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
add_executable(jsonconverter ${CMAKE_CURRENT_SOURCE_DIR}/jsonconverter.cpp)
|
|
target_link_libraries(jsonconverter PRIVATE DRAMSys::config)
|
|
set_target_properties(jsonconverter PROPERTIES FOLDER tests/configuration)
|