-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
60 lines (42 loc) · 1.49 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
cmake_minimum_required(VERSION 3.12)
project(EAR VERSION 0.0.1)
option(BUILD_TESTS "Build project with test suite" OFF)
#set(CMAKE_BUILD_TYPE Debug)
#set(CMAKE_BUILD_TYPE Release)
#include_directories(include deps/msgpack/include)
#set(msgpack_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/deps/msgpack/src")
add_definitions("-g -W -Wall -O2 -fPIC")
list(APPEND CMAKE_CXX_FLAGS "-std=c++1z")
set(JSON_BuildTests OFF CACHE INTERNAL "")
set(JSON_Install OFF CACHE INTERNAL "")
add_subdirectory(juce)
add_subdirectory(vendor/json)
#add_subdirectory(vendor/jsonrpccxx)
find_package(Boost 1.70 REQUIRED
system
program_options
filesystem
)
#find_package(JUCE REQUIRED PATHS "${CMAKE_CURRENT_LIST_DIR}/out/juce/")
message("JUCE=${JUCE_FOUND}")
include_directories(
${Boost_INCLUDE_DIRS}
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/json/include"
"${CMAKE_CURRENT_SOURCE_DIR}/vendor/jsonrpccxx/include"
)
#include_directories(${Boost_INCLUDE_DIRS} ${RTTL_INCLUDE_DIRS})
#add_definitions(-DMLOG_DIRECTORY_PATH="${CMAKE_CURRENT_LIST_DIR}")
#set(CMAKE_MACOSX_RPATH False)
include_directories(include)
#add_subdirectory(benchmark)
#add_subdirectory(build)
#add_subdirectory(bin)
add_subdirectory(src)
#if(BUILD_TESTS)
# add_subdirectory(deps/gtest)
# add_subdirectory(test)
#endif()
#if(BUILD_COVERAGE AND NOT CMAKE_COMPILER_IS_GNUCXX)
# message([WARNING] "Code Coverage on non-GCC compilers is not supported by default.
#Ensure that coverage library profile_rt is in CMake library path before executing.")
#endif()