In January 2021 we will introduce a 10 GB quota for project repositories. Higher limits for individual projects will be available on request. Please see https://doku.lrz.de/display/PUBLIC/GitLab for more information.

CMakeLists.txt 1.07 KB
Newer Older
schultezub's avatar
schultezub committed
1
PROJECT(campvis-modules)
2
MESSAGE(STATUS "Configuring CAMPVis-Modules")
schultezub's avatar
 
schultezub committed
3

4
LIST(APPEND CampvisModulesHeaders
5
    modulesapi.h
6 7
)

8
LINK_DIRECTORIES(${CampvisGlobalLinkDirectories} ${CampvisModulesLinkDirectories})
9

10
ADD_LIBRARY(campvis-modules
schultezub's avatar
schultezub committed
11
    ${CampvisModulesSources} ${CampvisModulesHeaders} 
schultezub's avatar
 
schultezub committed
12 13
)

14
ADD_DEFINITIONS(${CampvisGlobalDefinitions} ${CampvisModulesDefinitions})
schultezub's avatar
schultezub committed
15
INCLUDE_DIRECTORIES(${CampvisGlobalIncludeDirs} ${CampvisModulesIncludeDirs})
16
TARGET_LINK_LIBRARIES(campvis-modules campvis-core cgt sigslot ${CampvisGlobalExternalLibs} ${CampvisModulesExternalLibs})
17

18 19 20 21
# if campvis-core is built as a shared library, CMake will define the following flag to instruct
# the code to export DLL symbols
SET_TARGET_PROPERTIES(campvis-modules PROPERTIES DEFINE_SYMBOL "CAMPVIS_MODULES_BUILD_DLL")

22 23 24 25
IF(CAMPVIS_GROUP_SOURCE_FILES)
    DEFINE_SOURCE_GROUPS_FROM_SUBDIR(CampvisModulesSources ${CampvisHome} "")
    DEFINE_SOURCE_GROUPS_FROM_SUBDIR(CampvisModulesHeaders ${CampvisHome} "")
ENDIF()
26 27 28


INSTALL(TARGETS campvis-modules DESTINATION exports EXPORT campvis-targets)