-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·61 lines (45 loc) · 1.57 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#cmake -DCMAKE_BUILD_TYPE="Debug" ..
#cmake -DCMAKE_BUILD_TYPE="Release" ..
#LDFLAGS="-Wl,--as-needed"
cmake_minimum_required(VERSION 2.6)
project(muTrade)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
#configure_file (
# "${muTrade_SOURCE_DIR}/config.h.in"
# "${muTrade_SOURCE_DIR}/config.h"
#)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED OFF)
set(Boost_USE_STATIC_RUNTIME ON)
unset(Boost_INCLUDE_DIR CACHE)
unset(Boost_LIBRARY_DIRS CACHE)
#filesystem
find_package(Boost 1.51 REQUIRED COMPONENTS
system
regex
serialization
thread
program_options
)
include_directories(${Boost_INCLUDE_DIRS})
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++0x -Wall -fpermissive -fPIC ")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++0x -Wall -O2 -fpermissive -fPIC ")
include_directories(
${muTrade_SOURCE_DIR}/includes
)
SET(EXECUTABLE_OUTPUT_PATH ${muTrade_SOURCE_DIR}/bin)
SET(LIBRARY_OUTPUT_PATH ${muTrade_SOURCE_DIR}/bin)
add_subdirectory( src )
set(CPACK_COMPONENTS_ALL applications)
set(CPACK_GENERATOR "STGZ")
set(CPACK_PACKAGE_CONTACT "info@utradesolutions.com")
set(CPACK_PACKAGE_DESCRIPTION "muTrade")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "0")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "muTrade")
SET(CPACK_PACKAGE_FILE_NAME "muTrade-1.0.0-Linux")
set(CPACK_PACKAGE_VENDOR "uTrade Solutions Pvt Ltd")
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)
#set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt")
include(CPack)