- Remove nested minimum required to supress warnings. - Declare SystemC as system library to supress warnings in headers. - Add a BUILD_SHARED_LIBS option - Remove hardcoded STATIC in various add_library calls to honor the BUILD_SHARED_LIBS option - Remove _deps/ directory from the build directory in GitLab pipeline - Remove *.tdb files after test stage in pipeline - Set Ninja as the default generator for the dev preset and re-enable colored diagnostics
25 lines
745 B
CMake
25 lines
745 B
CMake
###############################################
|
|
### tests_configuration ###
|
|
###############################################
|
|
|
|
project(tests_configuration)
|
|
|
|
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/test_configuration.cpp)
|
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER tests/configuration)
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE
|
|
DRAMSys::config
|
|
gtest_main
|
|
)
|
|
|
|
gtest_discover_tests(${PROJECT_NAME}
|
|
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)
|
|
|
|
build_source_group()
|