Debian Codegraph @

CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 cmake_minimum_required(VERSION 3.1)
2 project(Antimony)
3 set(CMAKE_BUILD_TYPE RELEASE)
4
5 set(CMAKE_CXX_FLAGS "-Wall -Wextra -g -Werror=switch")
6 set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DRELEASE")
7 set(CMAKE_CXX_FLAGS_DEBUG "-O0")
8
9 ################################################################################
10
11 find_package(PythonLibs 3.3 REQUIRED)
12
13 if (WIN32)
14 add_definitions("-DBOOST_PYTHON_STATIC_LIB")
15 endif()
16
17 if (WIN32)
18 find_package(Boost REQUIRED COMPONENTS python3)
19 elseif (APPLE)
20 foreach (PYTHON_NAME python3 python36 python37)
21 find_package(Boost QUIET COMPONENTS ${PYTHON_NAME})
22 if (${Boost_FOUND})
23 break()
24 endif()
25 endforeach()
26 elseif (UNIX)
27 foreach (PYTHON_NAME python3 python-py36 python-py35 python-py34)
28 find_package(Boost QUIET COMPONENTS ${PYTHON_NAME})
29 if (${Boost_FOUND})
30 break()
31 endif()
32 endforeach()
33 endif()
34
35 if (NOT ${Boost_FOUND})
36 message(FATAL_ERROR "Could not find boost::python3")
37 endif()
38
39 ################################################################################
40
41 add_subdirectory(lib/graph)
42 add_subdirectory(lib/fab)
43
44 add_subdirectory(app)