-
Notifications
You must be signed in to change notification settings - Fork 33
/
CMakeLists.txt
41 lines (30 loc) · 990 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
35
36
37
38
39
40
41
cmake_minimum_required ( VERSION 2.8.4 )
project ( npk )
set( CMAKE_STATIC_LIBRARY_PREFIX "" )
set( CMAKE_SHARED_LIBRARY_PREFIX "" )
set_directory_properties(
PROPERTY DEBUG_POSTFIX "d"
)
set( USE_ZLIB_PREFIX OFF
CACHE BOOL "Turn on to use zlib's Z_PREFIX option (to prevent collision of function names)."
)
set( USE_NPK_PREFIX OFF
CACHE BOOL "Turn on to prevent collision of npk function names while linking."
)
set( NPK_PREFIX NPK__
CACHE STRING "Prefix for function names. (this will be used when you turn USE_NPK_PREFIX on)"
)
set( DEV_MODE ON
CACHE BOOL "Build developer version library. Should be turned on to build npk tool."
)
set( BUILD_NPK ON
CACHE BOOL "Build command line executable tool 'npk'."
)
set( CASE_SENSITIVE OFF
CACHE BOOL "Turn on to make entity names case-sensitive."
)
enable_testing()
add_subdirectory( libnpk )
if( BUILD_NPK AND DEV_MODE )
add_subdirectory( npk )
endif( BUILD_NPK AND DEV_MODE )