Skip to content
Snippets Groups Projects
Commit 4ca34377 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

change GET_SOURCE_FILES() in Functions.cmake to include *.tpp and store...

change GET_SOURCE_FILES() in Functions.cmake to  include *.tpp and store relative file path instead of absolute one

Using relative path makes easier to modify a list of source files later, e.g. removing particular source files depending on configuration.
parent a6eefb20
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,9 @@ MACRO(GET_SOURCE_FILES SOURCE_FILES) ...@@ -15,8 +15,9 @@ MACRO(GET_SOURCE_FILES SOURCE_FILES)
ENDIF() ENDIF()
# Get all files in the directory # Get all files in the directory
FILE(GLOB GET_SOURCE_FILES_HEADERS ${DIR}/*.h) FILE(GLOB GET_SOURCE_FILES_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${DIR}/*.h)
FILE(GLOB GET_SOURCE_FILES_SOURCES ${DIR}/*.cpp) FILE(GLOB GET_SOURCE_FILES_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${DIR}/*.tpp)
FILE(GLOB GET_SOURCE_FILES_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${DIR}/*.cpp)
SET(${SOURCE_FILES} ${GET_SOURCE_FILES_HEADERS} ${GET_SOURCE_FILES_SOURCES}) SET(${SOURCE_FILES} ${GET_SOURCE_FILES_HEADERS} ${GET_SOURCE_FILES_SOURCES})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment