-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (21 loc) · 923 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
cmake_minimum_required(VERSION 2.6)
PROJECT(db)
SET(Boost_USE_STATIC_LIBS ON)
SET(Boost_USE_MULTITHREADED ON)
FIND_PACKAGE(Boost 1.40 COMPONENTS serialization system)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
SET(db_SRCS db.cpp dbUtils.cpp parser.cpp)
SET (boost_SRCS /usr/share/doc/libboost1.40-dev/examples/random_device.cpp)
#SET(CMAKE_CXX_FLAGS "-std=gnu++0x -m32 -static-libgcc")
SET(CMAKE_CXX_FLAGS "-std=gnu++0x -static-libgcc")
ADD_LIBRARY(civdb STATIC ${db_SRCS} ${boost_SRCS})
LINK_DIRECTORIES(civdb)
ADD_EXECUTABLE(shell shell.cpp)
ADD_EXECUTABLE(value value.cpp)
ADD_EXECUTABLE(listCards listCards.cpp)
ADD_EXECUTABLE(rearrange rearrange.cpp)
TARGET_LINK_LIBRARIES(shell civdb readline ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES(value civdb ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES(listCards civdb ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES(rearrange civdb ${Boost_LIBRARIES})
SET(CMAKE_BUILD_TYPE Debug)