-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (15 loc) · 871 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
cmake_minimum_required(VERSION 3.5.1)
project (mecsycoWrapper )
set(PROJECT_VERSION "1.0.0")
set(CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Woverloaded-virtual -Wredundant-decls -Wsign-conversion -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -Werror -Wno-unused")
file(GLOB SOURCES "src/*.cpp")
# pour boost
find_package(Boost)
IF (Boost_FOUND)
include_directories(${Boost_INCLUDE_DIR})
endif()
set (Boost_USE_STATIC_LIBS OFF) # pour lier boost de façon dynamique
find_package (Boost COMPONENTS REQUIRED system thread)
add_library(lorenzYcpp SHARED ${SOURCES})
target_link_libraries (lorenzYcpp ${Boost_LIBRARIES})