-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (29 loc) · 1.1 KB
/
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
project(installer-livecd)
cmake_minimum_required(VERSION 2.8)
set( CMAKE_VERBOSE_MAKEFILE on )
#set( CMAKE_CXX_FLAGS "-fsanitize=address -std=c++11" )
set( CMAKE_CXX_FLAGS "-std=c++11" )
set( CMAKE_BUILD_TYPE debug )
add_definitions(-DBOOST_NO_DEPRECATED)
add_definitions(-DBOOST_NO_CXX11_SCOPED_ENUMS)
#add_definitions(-Weverything)
#add_definitions(-Wno-c++98-compat)
#add_definitions(-Wno-padded)
# we need this flag, else all linking tools will fail to link...
# if not defined, some thing like this will be shown:
# libcloudos.so: undefined reference to `boost::log::v2s_mt_posix::aux::once_block_sentry::enter_once_block() const'
add_definitions(-DBOOST_ALL_DYN_LINK)
include_directories ("${PROJECT_SOURCE_DIR}")
add_executable(installer-livecd main.cpp InstallerLiveCD.cpp)
target_link_libraries(installer-livecd cloudos
boost_filesystem
boost_system
boost_log
boost_log_setup
boost_thread
boost_regex
boost_system
protobuf
pthread
)
install(TARGETS installer-livecd RUNTIME DESTINATION bin)