Skip to content

Commit 16fa598

Browse files
Merge pull request #1 from covemountainsoftware/feature/more-unique-cmake-variables
Feature/more unique cmake variables
2 parents f57c888 + 7eb3b4c commit 16fa598

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ add_compile_options(-Wall -Wextra -Werror)
99
include_directories(include)
1010
include(externals/qpcCMakeSupport.txt)
1111

12-
set(TEST_SUPPORT_TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/test_support)
13-
set(MOCKS_TOP_DIR ${TEST_SUPPORT_TOP_DIR}/mocks)
12+
set(CMS_TEST_SUPPORT_TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/test_support)
13+
set(MOCKS_TOP_DIR ${CMS_TEST_SUPPORT_TOP_DIR}/mocks)
1414
set(EXTERNALS_TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/externals)
15-
set(QPC_TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/externals/qpc)
1615
set(DRIVERS_TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/drivers)
17-
set(UTILS_TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/utilities)
16+
set(CMS_UTILS_TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/utilities)
1817

1918
add_subdirectory(utilities)
2019
add_subdirectory(test_support)

examples/hwLockCtrlService/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ set(TEST_SOURCES
1414

1515
# this include expects TEST_SOURCES and TEST_APP_NAME to be
1616
# defined, and creates the cpputest based test executable target
17-
include(${TEST_SUPPORT_TOP_DIR}/common/cpputestCMake.txt)
17+
include(${CMS_TEST_SUPPORT_TOP_DIR}/common/cpputestCMake.txt)
1818

1919
target_link_libraries(${TEST_APP_NAME} cpputest-qpc-lib ${CPPUTEST_LDFLAGS})

test_support/cpputest-qpc-port/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
set(CPPUTEST_QP_PORT_TOP_DIR ${TEST_SUPPORT_TOP_DIR}/cpputest-qpc-port)
2+
set(CPPUTEST_QP_PORT_TOP_DIR ${CMS_TEST_SUPPORT_TOP_DIR}/cpputest-qpc-port)
33
set(CPPUTEST_QP_PORT_SRC_DIR ${CPPUTEST_QP_PORT_TOP_DIR}/src)
44
set(CPPUTEST_QP_PORT_SRC_FILES
55
${CPPUTEST_QP_PORT_SRC_DIR}/cpputest_qf_port.cpp
@@ -11,14 +11,14 @@ set(CPPUTEST_QP_PORT_SRC_FILES
1111

1212
include_directories(${QPC_SRC_DIR})
1313
include_directories(${CPPUTEST_QP_PORT_TOP_DIR}/include)
14-
include_directories(${UTILS_TOP_DIR}/include)
14+
include_directories(${CMS_UTILS_TOP_DIR}/include)
1515

1616
add_subdirectory(test)
1717
add_library(cpputest-qpc-lib ${CPPUTEST_QP_PORT_SRC_FILES} ../common/cpputestMain.cpp)
1818
target_include_directories(cpputest-qpc-lib PUBLIC
1919
${QPC_INCLUDE_DIR}
2020
${CPPUTEST_QP_PORT_TOP_DIR}/include
21-
${UTILS_TOP_DIR}/include)
21+
${CMS_UTILS_TOP_DIR}/include)
2222

2323

2424

test_support/cpputest-qpc-port/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ set(TEST_SOURCES
99

1010
# this include expects TEST_SOURCES and TEST_APP_NAME to be
1111
# defined, and creates the cpputest based test executable target
12-
include(${TEST_SUPPORT_TOP_DIR}/common/cpputestCMake.txt)
12+
include(${CMS_TEST_SUPPORT_TOP_DIR}/common/cpputestCMake.txt)
1313

1414
target_link_libraries(${TEST_APP_NAME} cpputest-qpc-lib ${CPPUTEST_LDFLAGS})

utilities/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ set(TEST_SOURCES
88

99
# this include expects TEST_SOURCES and TEST_APP_NAME to be
1010
# defined, and creates the cpputest based test executable target
11-
include(${TEST_SUPPORT_TOP_DIR}/common/cpputestCMake.txt)
11+
include(${CMS_TEST_SUPPORT_TOP_DIR}/common/cpputestCMake.txt)
1212

1313
target_link_libraries(${TEST_APP_NAME} cpputest-qpc-lib ${CPPUTEST_LDFLAGS})

0 commit comments

Comments
 (0)