-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
35 lines (24 loc) · 885 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
34
35
cmake_minimum_required(VERSION 3.4.3)
project(flare)
set(CXX "g++")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -W -Werror -g -Wno-unused-parameter -Wno-redundant-move")
set(CMAKE_CXX_FLAGS "-O3 -Wall -W -pedantic -Wno-unused-parameter")
set(CMAKE_CXX_FLAGS_DEBUG "${true} -DFLARE_DEBUG")
# TODO add more platforms
if(APPLE)
add_definitions(-DTARGET_DARWIN)
endif()
find_package(LLVM REQUIRED CONFIG)
include_directories(${LLVM_INCLUDE_DIRS})
add_definitions(${LLVM_DEFINITIONS})
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
message(STATUS "Using C_FLAGS: ${CMAKE_CXX_FLAGS}")
#find_package(jsoncpp REQUIRED)
#include_directories(${jsoncpp_INCLUDE_DIRS})
#link_libraries(${jsoncpp_LIBRARIES})
add_subdirectory(src/)
add_subdirectory(stdapi/capi)
#enable_testing()
#add_subdirectory(test/)