2016-12-07 14:58:31 +00:00
|
|
|
macro(add_glob cur_list)
|
2017-04-01 07:20:54 +00:00
|
|
|
file(GLOB __tmp RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${ARGN})
|
|
|
|
list(APPEND ${cur_list} ${__tmp})
|
2016-12-07 14:58:31 +00:00
|
|
|
endmacro()
|
|
|
|
|
|
|
|
macro(add_headers_and_sources prefix common_path)
|
2017-05-10 02:45:21 +00:00
|
|
|
add_glob(${prefix}_headers RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${common_path}/*.h)
|
2017-04-03 19:57:07 +00:00
|
|
|
add_glob(${prefix}_sources ${common_path}/*.cpp ${common_path}/*.h)
|
2016-12-07 14:58:31 +00:00
|
|
|
endmacro()
|
|
|
|
|
|
|
|
macro(add_headers_only prefix common_path)
|
2017-04-03 19:57:07 +00:00
|
|
|
add_glob(${prefix}_headers RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${common_path}/*.h)
|
2017-03-15 18:54:31 +00:00
|
|
|
endmacro()
|