-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakeLists.txt
33 lines (23 loc) · 1023 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
project(libbitmessage)
cmake_minimum_required(VERSION 2.8)
set(LIBRARY_NAME ${PROJECT_NAME})
set(MAJOR_VERSION 0)
set(MINOR_VERSION 1)
set(PATCH_VERSION 0)
set(LIBRARY_VERSION ${MAJOR_VERSION}.${MINOR_VERSION}-${PATCH_VERSION})
set(CMAKE_CXX_FLAGS "-std=c++11 -g -Wall")
set (BM_DEBUG 1)
set(CMAKE_BUILD_TYPE Debug)
configure_file(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_SOURCE_DIR}/src/config.h)
aux_source_directory(./src SRC_LIST)
add_executable(${PROJECT_NAME} ${SRC_LIST})
#set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/Modules/)
# Botan 1.11
exec_program("botan-config-1.11 --cflags" OUTPUT_VARIABLE BOTAN_CXXFLAGS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${BOTAN_CXXFLAGS}")
#exec_program("botan-config-1.11 --libs" OUTPUT_VARIABLE BOTAN_LIBS)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${BOTAN_LIBS}")
target_link_libraries(${PROJECT_NAME} botan-1.11)
# Google Performance Tools
target_link_libraries(${PROJECT_NAME} profiler)
#message("CMAKE_CXX_FLAGS: ${CMAKE_CXX_FLAGS_DEBUG}")