CMakeLists.txt 1.3 KB
Newer Older
schultezub's avatar
schultezub committed
1
PROJECT(campvis-modules)
schultezub's avatar
 
schultezub committed
2
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0 FATAL_ERROR)
3
#INCLUDE(../cmake/commonconf.cmake)
schultezub's avatar
 
schultezub committed
4

schultezub's avatar
schultezub committed
5
MESSAGE(STATUS "Configuring Campvis Modules")
6
WRITE_PIPELINE_REGISTRATION("gen_pipelineregistration.h")
schultezub's avatar
 
schultezub committed
7

8
LIST(APPEND CampvisModulesHeaders
9
    modulesapi.h
10
    gen_pipelineregistration.h
11
    pipelinefactory.h
12
	processorfactory.h
13
14
15
)
LIST(APPEND CampvisModulesSources
    pipelinefactory.cpp
16
	processorfactory.cpp
17
18
19
)


20
LINK_DIRECTORIES(${CampvisGlobalLinkDirectories} ${CampvisModulesLinkDirectories})
21

22
ADD_LIBRARY(campvis-modules
schultezub's avatar
schultezub committed
23
    ${CampvisModulesSources} ${CampvisModulesHeaders} 
schultezub's avatar
 
schultezub committed
24
25
)

26
ADD_DEFINITIONS(${CampvisGlobalDefinitions} ${CampvisModulesDefinitions})
schultezub's avatar
schultezub committed
27
INCLUDE_DIRECTORIES(${CampvisGlobalIncludeDirs} ${CampvisModulesIncludeDirs})
28
TARGET_LINK_LIBRARIES(campvis-modules campvis-core cgt sigslot ${CampvisGlobalExternalLibs} ${CampvisModulesExternalLibs})
29

30
31
32
33
# 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")

34
35
36
37
IF(CAMPVIS_GROUP_SOURCE_FILES)
    DEFINE_SOURCE_GROUPS_FROM_SUBDIR(CampvisModulesSources ${CampvisHome} "")
    DEFINE_SOURCE_GROUPS_FROM_SUBDIR(CampvisModulesHeaders ${CampvisHome} "")
ENDIF()