-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
39 lines (29 loc) · 896 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required (VERSION 2.6)
project (BOGOENGINE)
# Find Python interpreter
find_package (PythonInterp 2.7)
# Find glibmm
find_package (PkgConfig)
pkg_check_modules (GLIBMM glibmm-2.4)
# Include - headers
include_directories (src)
include_directories (${GLIBMM_INCLUDE_DIRS} src)
# Linker - directories
link_directories (${GLIBMM_LIBRARY_DIRS})
# uninstall target
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
# Directories with CMakeLists.txt
add_subdirectory (src)
add_subdirectory (bindings)
add_subdirectory (test EXCLUDE_FROM_ALL)
# Output - executables
# add_executable ()
# Output - libraries
# add_library ()
# Linker - files
# target_link_libraries ()