-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
22 lines (17 loc) · 891 Bytes
/
CMakeLists.txt
File metadata and controls
22 lines (17 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CMAKE_MINIMUM_REQUIRED (VERSION 3.3)
PROJECT (sac-mutc)
#FIXME(artem) we can create a definitoin for language "SAC" which will
# automatically pull sac2c compiler.
# Where the compiled sac modules result
SET (DLL_BUILD_DIR "${PROJECT_BINARY_DIR}/lib")
# For what targets we build modules
SET (TARGETS seq mt_pth CACHE STRING "Build stdlib-jpeg for these targets")
SET (SAC2C_EXEC CACHE STRING "A path to sac2c compiler")
SET (LINKSETSIZE "0" CACHE STRING "Set a value for -linksetsize parameter of sac2c")
SET (SAC2C_EXTRA_INC "" CACHE STRING "Extra include files that should be used by sac2c")
# Check whether sac2c is operational
INCLUDE ("cmake-common/check-sac2c.cmake")
# For every target run CMakeLists.txt in src
FOREACH (TARGET IN ITEMS ${TARGETS})
ADD_SUBDIRECTORY (src src-${TARGET})
ENDFOREACH ()