You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
set(moddir ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
include(${moddir}/ModuleSetup.cmake OPTIONAL)
|
|
|
|
file(GLOB srcs *.cpp)
|
|
|
|
if(MODULE_${modname}_STATIC)
|
|
|
|
set(STATIC_MODULES ${STATIC_MODULES} ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)
|
|
|
|
else()
|
|
|
|
include_directories(${MODULE_ADDITIONAL_INCLUDES})
|
|
|
|
add_library(${modname} MODULE ${srcs} ${MODULE_ADDITIONAL_SOURCES})
|
|
|
|
target_link_libraries(${modname} ${linker_options} ${MODULE_ADDITIONAL_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|