forked from p2pderivatives/cfd-js-wasm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
34 lines (26 loc) · 744 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
cmake_minimum_required(VERSION 3.13)
# configure.ac: AC_INIT([cfd-js], [1.0]
set(PACKAGE_VERSION_p2pderivatives 0.1.0)
####################
# options
####################
include(./cmake/CfdCommonOption.cmake)
include(./cmake/CfdWallyOption.cmake)
option(ENABLE_CAPI "enable c-api (ON or OFF. default:OFF)" OFF)
if(NOT APPLE)
set(ENABLE_SHARED ON CACHE BOOL "" FORCE)
endif()
set(ENABLE_EMSCRIPTEN ON CACHE BOOL "" FORCE)
####################
# common setting
####################
include(./cmake/CfdCommonSetting.cmake)
include(./cmake/ConvertSrclistFunction.cmake)
####################
# subdirectories
####################
project(cfdjs_wasm_all CXX)
if(ENABLE_EMSCRIPTEN)
add_subdirectory(external)
add_subdirectory(src)
endif()