forked from taichi-dev/taichi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (26 loc) · 1.12 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
#*********************************************************************
# Taichi - Open-Source Computer Graphics Library
#*********************************************************************
cmake_minimum_required(VERSION 3.0)
project(taichi)
set(CMAKE_BUILD_TYPE Release)
set(TAICHI_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}/cmake/")
if (WIN32)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_ROOT}/Modules")
else ()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_ROOT}/Modules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/")
endif ()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/build")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/build")
include(cmake/TaichiCXXFlags.cmake)
include(cmake/TaichiCore.cmake)
include(cmake/TaichiMain.cmake)
set(TAICHI_PROJECT_LIBRARIES "")
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/projects")
add_subdirectory(projects)
endif()
message("C++ Flags: ${CMAKE_CXX_FLAGS}")
message("Project libraries: ${TAICHI_PROJECT_LIBRARIES}")
file(WRITE modules.txt "${TAICHI_PROJECT_LIBRARIES}")