forked from rpavlik/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
51 lines (44 loc) · 1.23 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
cmake_minimum_required(VERSION 2.8)
project(cr)
find_package(PythonInterp REQUIRED)
find_package(Threads)
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
set(EXTRA_LIBS)
if(CMAKE_THREAD_LIBS_INIT)
list(APPEND EXTRA_LIBS ${CMAKE_THREAD_LIBS_INIT})
set(CHROMIUM_THREADSAFE ON)
else()
set(CHROMIUM_THREADSAFE OFF)
endif()
if(WIN32)
set(CHROMIUM_THREADSAFE ON)
endif()
if(CHROMIUM_THREADSAFE)
add_definitions(-DCHROMIUM_THREADSAFE=1)
endif()
include(arch.cmake)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/include ${PROJECT_BINARY_DIR}/include/state)
include_directories(include ${PROJECT_BINARY_DIR}/include)
include(generate.cmake)
add_subdirectory(util)
add_subdirectory(mothership)
add_subdirectory(spu_loader)
add_subdirectory(packer)
add_subdirectory(state_tracker)
add_subdirectory(unpacker)
add_subdirectory(dlm)
add_subdirectory(spu)
add_subdirectory(app_faker)
add_subdirectory(opengl_stub)
add_subdirectory(crserverlib)
add_subdirectory(crserver)
add_subdirectory(crutapi)
add_subdirectory(crutclientapi)
add_subdirectory(crutproxy)
add_subdirectory(crutserver)
add_subdirectory(progs)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/ ${PROJECT_BINARY_DIR}/include/
DESTINATION include
COMPONENT dev
PATTERN .gitignore EXCLUDE)