~charon-developers/charon-core/trunk

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: jmgottfried
  • Date: 2010-03-16 15:18:38 UTC
  • Revision ID: svn-v4:7d56a235-2f8b-4627-957e-5f30cc86da59:charon-core/trunk:680
moved header files to seperate include directory

this makes e.g. Compile and Load test work even if charon-core is not yet installed
and gives a chance to get charon-meta working

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#files for Charon library
 
2
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)
 
3
SET(CHARON_CORE_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include/charon-core)
2
4
SET(CHARON_FILES
3
5
        SplitStream
4
6
        StringTool
13
15
SET(CHARON_GROUP)
14
16
FOREACH(CURFILE ${CHARON_FILES})
15
17
        FILE(GLOB TEMP
16
 
                RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
17
 
                ${CURFILE}.cpp ${CURFILE}.h ${CURFILE}.hxx
 
18
                ${CMAKE_CURRENT_SOURCE_DIR}/${CURFILE}.cpp
 
19
                ${CHARON_CORE_INCLUDE_DIR}/${CURFILE}.h
 
20
                ${CHARON_CORE_INCLUDE_DIR}/${CURFILE}.hxx
18
21
        )
19
22
        LIST(APPEND CHARON_GROUP ${TEMP})
20
23
ENDFOREACH(CURFILE ${CHARON_FILES})
21
24
 
22
25
SET(PLUGIN_FILES
23
26
        AbstractPluginLoader.cpp
24
 
        AbstractPluginLoader.h
 
27
        ${CHARON_CORE_INCLUDE_DIR}/AbstractPluginLoader.h
25
28
        PluginManager.cpp
26
 
        PluginManager.h
27
 
        PluginManagerInterface.h
 
29
        ${CHARON_CORE_INCLUDE_DIR}/PluginManager.h
 
30
        ${CHARON_CORE_INCLUDE_DIR}/PluginManagerInterface.h
28
31
        ExceptionHandler.cpp
29
 
        ExceptionHandler.h
 
32
        ${CHARON_CORE_INCLUDE_DIR}/ExceptionHandler.h
30
33
)
31
34
IF(WIN32)
32
35
        LIST(APPEND PLUGIN_FILES
33
 
                WindowsPluginLoader.h
 
36
                ${CHARON_CORE_INCLUDE_DIR}/WindowsPluginLoader.h
34
37
                WindowsPluginLoader.cpp
35
38
        )
36
39
ENDIF(WIN32)
37
40
IF(UNIX)
38
41
        LIST(APPEND PLUGIN_FILES
39
 
                UnixPluginLoader.h
 
42
                ${CHARON_CORE_INCLUDE_DIR}/UnixPluginLoader.h
40
43
                UnixPluginLoader.cpp
41
44
        )
42
45
ENDIF(UNIX)
87
90
)
88
91
 
89
92
# install header files to include directory
90
 
FILE(GLOB HEADER_FILES
91
 
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
92
 
    *.h *.hxx
93
 
)
94
93
INSTALL(
95
 
    FILES       ${HEADER_FILES}
96
 
    DESTINATION include/${PROJECT_NAME}
 
94
    DIRECTORY   ${CHARON_CORE_INCLUDE_DIR}
 
95
    DESTINATION include
97
96
    COMPONENT   headers
 
97
        PATTERN ".svn" EXCLUDE
98
98
)