Remove file globs from CMakeLists

Fix build
This commit is contained in:
2024-11-06 16:45:35 +01:00
parent 5825eb8c58
commit a37171c6fd
23 changed files with 207 additions and 25105 deletions

View File

@@ -4,15 +4,17 @@
project(tests_dramsys)
file(GLOB_RECURSE SOURCE_FILES *.cpp)
file(GLOB_RECURSE HEADER_FILES *.h)
add_executable(${PROJECT_NAME} ${SOURCE_FILES} ${HEADER_FILES})
add_executable(${PROJECT_NAME}
AddressDecoderTests.cpp
b_transport/b_transport.cpp
main.cpp
test_misc.cpp
test_utils.cpp
)
target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_SOURCE_DIR})
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER tests)
target_link_libraries(${PROJECT_NAME}
DRAMSys::util
DRAMSys::libdramsys
gtest_main
)
@@ -20,5 +22,3 @@ target_link_libraries(${PROJECT_NAME}
gtest_discover_tests(${PROJECT_NAME}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
build_source_group()