add cmake function "use_cm_module"
This commit is contained in:
parent
884d6883c1
commit
652d903bb6
14
cm_modules.cmake
Normal file
14
cm_modules.cmake
Normal file
@ -0,0 +1,14 @@
|
||||
macro(add_cm_library module_name project_folder)
|
||||
message("Create Module <" ${module_name} "> Project Folder <" ${project_folder} ">" )
|
||||
|
||||
set(SOURCE_FILES "${ARGN}")
|
||||
|
||||
IF(WIN32)
|
||||
add_library(${module_name} STATIC ${SOURCE_FILES})
|
||||
ELSE()
|
||||
add_library(${module_name} SHARED ${SOURCE_FILES})
|
||||
ENDIF(WIN32)
|
||||
|
||||
set_property(TARGET ${module_name} PROPERTY FOLDER ${project_folder})
|
||||
|
||||
endmacro()
|
@ -2,6 +2,7 @@ include(compiler)
|
||||
include(system_bit)
|
||||
include(version)
|
||||
include(output_path)
|
||||
include(cm_modules)
|
||||
|
||||
macro(use_cm_module module)
|
||||
add_subdirectory(CM${module})
|
||||
|
Loading…
x
Reference in New Issue
Block a user