project() should only be called if the subdirectory, in fact, can be built standalone.
22 lines
514 B
CMake
22 lines
514 B
CMake
###############################################
|
|
### tests_simulator ###
|
|
###############################################
|
|
|
|
add_executable(tests_simulator
|
|
main.cpp
|
|
cache/tests_cache.cpp
|
|
cache/TargetMemory.cpp
|
|
cache/ListInitiator.cpp
|
|
)
|
|
|
|
set_target_properties(tests_simulator PROPERTIES FOLDER tests/simulator)
|
|
|
|
target_link_libraries(tests_simulator PRIVATE
|
|
simulator
|
|
gtest_main
|
|
)
|
|
|
|
gtest_discover_tests(tests_simulator
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|