-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (37 loc) · 1.47 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
cmake_minimum_required(VERSION 2.6)
# This must be before the project() command so cmake finds our platform
# definition
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../../cmake")
# This skips compiler verification which will fail because we haven't finished
# installing the necessary libraries
set(CMAKE_CXX_COMPILER_WORKS 1)
project(Acpica CXX)
# Initialize CXXFLAGS.
set(CMAKE_CXX_FLAGS "-Wall -Werror -std=gnu++14 -Wno-unused-variable")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "-O4 -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g3")
include_directories(include)
add_library(capnp STATIC
${CMAKE_SOURCE_DIR}/src/capnp/arena.c++
${CMAKE_SOURCE_DIR}/src/capnp/blob.c++
${CMAKE_SOURCE_DIR}/src/capnp/layout.c++
${CMAKE_SOURCE_DIR}/src/capnp/serialize.c++
${CMAKE_SOURCE_DIR}/src/capnp/message.c++
)
add_library(kj STATIC
${CMAKE_SOURCE_DIR}/src/kj/io.c++
${CMAKE_SOURCE_DIR}/src/kj/string.c++
${CMAKE_SOURCE_DIR}/src/kj/debug.c++
${CMAKE_SOURCE_DIR}/src/kj/mutex.c++
${CMAKE_SOURCE_DIR}/src/kj/array.c++
${CMAKE_SOURCE_DIR}/src/kj/common.c++
${CMAKE_SOURCE_DIR}/src/kj/exception.c++
)
install(TARGETS capnp kj
ARCHIVE DESTINATION lib)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/capnp DESTINATION include
FILES_MATCHING PATTERN "*.h")
install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/kj DESTINATION include
FILES_MATCHING PATTERN "*.h")