-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
28 lines (19 loc) · 787 Bytes
/
CMakeLists.txt
File metadata and controls
28 lines (19 loc) · 787 Bytes
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
cmake_minimum_required(VERSION 3.5)
project(Antimony)
set(CMAKE_BUILD_TYPE RELEASE)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -g -Werror=switch")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DRELEASE")
set(CMAKE_CXX_FLAGS_DEBUG "-O0")
################################################################################
find_package(Python 3.3 REQUIRED COMPONENTS Interpreter Development)
if (WIN32)
add_definitions("-DBOOST_PYTHON_STATIC_LIB")
endif()
find_package(Boost REQUIRED COMPONENTS python${Python_VERSION_MAJOR}${Python_VERSION_MINOR})
if (NOT ${Boost_FOUND})
message(FATAL_ERROR "Could not find boost::python3")
endif()
################################################################################
add_subdirectory(lib/graph)
add_subdirectory(lib/fab)
add_subdirectory(app)