Refactor CMakeLists and GitLab CI/CD pipeline
- 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
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
### tests_configuration ###
|
||||
###############################################
|
||||
|
||||
cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
project(tests_configuration)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/test_configuration.cpp)
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
### tests_dramsys ###
|
||||
###############################################
|
||||
|
||||
cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
project(tests_dramsys)
|
||||
|
||||
file(GLOB_RECURSE SOURCE_FILES *.cpp)
|
||||
|
||||
@@ -35,8 +35,6 @@
|
||||
### tests_regression ###
|
||||
###############################################
|
||||
|
||||
cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
project(tests_regression)
|
||||
|
||||
find_program(SqlDiff sqldiff)
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
### tests_simulator ###
|
||||
###############################################
|
||||
|
||||
cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
project(tests_simulator)
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
### tests_util ###
|
||||
###############################################
|
||||
|
||||
cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
project(tests_util)
|
||||
|
||||
file(GLOB_RECURSE SOURCE_FILES *.cpp)
|
||||
@@ -20,4 +18,4 @@ target_link_libraries(${PROJECT_NAME}
|
||||
|
||||
gtest_discover_tests(${PROJECT_NAME})
|
||||
|
||||
build_source_group()
|
||||
build_source_group()
|
||||
|
||||
Reference in New Issue
Block a user