Remove unnecessary project() calls
project() should only be called if the subdirectory, in fact, can be built standalone.
This commit is contained in:
@@ -2,22 +2,20 @@
|
||||
### tests_simulator ###
|
||||
###############################################
|
||||
|
||||
project(tests_simulator)
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
add_executable(tests_simulator
|
||||
main.cpp
|
||||
cache/tests_cache.cpp
|
||||
cache/TargetMemory.cpp
|
||||
cache/ListInitiator.cpp
|
||||
)
|
||||
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER tests/simulator)
|
||||
set_target_properties(tests_simulator PROPERTIES FOLDER tests/simulator)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE
|
||||
DRAMSys_Simulator
|
||||
target_link_libraries(tests_simulator PRIVATE
|
||||
simulator
|
||||
gtest_main
|
||||
)
|
||||
|
||||
gtest_discover_tests(${PROJECT_NAME}
|
||||
gtest_discover_tests(tests_simulator
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user