CMakeListsStaticInclude.txt 932 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# To build ACGL as a library, use the CMakeLists.txt
# To build it statically into a project just include this file,
# e.g.: INCLUDE(${CMAKE_SOURCE_DIR}/extern/acgl/CMakeListsStaticInclude.txt)
#

# Find all used files of certain file-types
FILE(GLOB_RECURSE SOURCE_FILES_C   "${CMAKE_CURRENT_LIST_DIR}/src/*.c")
FILE(GLOB_RECURSE SOURCE_FILES_CC  "${CMAKE_CURRENT_LIST_DIR}/src/*.cc")
FILE(GLOB_RECURSE SOURCE_FILES_CPP "${CMAKE_CURRENT_LIST_DIR}/src/*.cpp")
FILE(GLOB_RECURSE HEADER_FILES_H   "${CMAKE_CURRENT_LIST_DIR}/include/*.h")
FILE(GLOB_RECURSE HEADER_FILES_HH  "${CMAKE_CURRENT_LIST_DIR}/include/*.hh")
FILE(GLOB_RECURSE HEADER_FILES_HPP "${CMAKE_CURRENT_LIST_DIR}/include/*.hpp")

SET(HEADER_FILES ${HEADER_FILES} ${HEADER_FILES_H} ${HEADER_FILES_HH} ${HEADER_FILES_HPP})
SET(SOURCE_FILES ${SOURCE_FILES} ${SOURCE_FILES_C} ${SOURCE_FILES_CC} ${SOURCE_FILES_CPP})

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_LIST_DIR}/include)