forked from maximegmd/Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
49 lines (37 loc) · 891 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
40
41
42
43
44
45
46
47
48
49
cmake_minimum_required(VERSION 2.6)
include(FindBoost)
#name
project(Framework)
set(LIBRARY_OUTPUT_PATH ../Bin/${CMAKE_BUILD_TYPE})
#files
find_package(
Boost
1.51.0
COMPONENTS serialization signals system thread filesystem date_time REQUIRED
)
message(
STATUS
${Boost_LIBRARIES}
)
SET(CMAKE_BUILD_TYPE "Release")
link_directories(${Boost_LIBRARY_DIRS} /usr/lib64 /usr/lib/x86_64-linux-gnu/)
include_directories(${Boost_INCLUDE_DIRS} ./Src /usr/include/ /usr/include/crypto++ /usr/include/x86_64-linux-gnu/)
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "-O2 -std=c++0x") ## Optimize
set(CMAKE_EXE_LINKER_FLAGS "-s") ## Strip binary
endif()
file(
GLOB_RECURSE
source_files
Src/*
)
# binary
add_library(
Framework
SHARED
${source_files}
)
target_link_libraries(
Framework
${Boost_LIBRARIES} odbc z crypto++
)