File tree Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change 1
1
project (SpringMapConvNG)
2
- cmake_minimum_required (VERSION 3.0)
3
-
4
- macro (use_cxx11)
5
- if (CMAKE_VERSION VERSION_LESS "3.1" )
6
- if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
7
- set (CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS} " )
8
- endif ()
9
- else ()
10
- set (CMAKE_CXX_STANDARD 11)
11
- endif ()
12
- endmacro (use_cxx11)
13
-
14
- use_cxx11()
15
-
16
- LIST (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
2
+ cmake_minimum_required (VERSION 3.1)
17
3
4
+ set (CMAKE_CXX_STANDARD 11)
18
5
find_package (DevIL REQUIRED)
19
6
20
7
@@ -30,7 +17,9 @@ set(MAPCONV_FILES
30
17
add_executable (springMapConvNG src/main.cpp ${MAPCONV_FILES} )
31
18
add_executable (smfdecompiler src/decompiler.cpp ${MAPCONV_FILES} )
32
19
33
- if (FALSE ) # change to TRUE when compiling with statix mxe
20
+ option (MAPCONV_STATIC "link static" FALSE )
21
+
22
+ if (MAPCONV_STATIC)
34
23
add_definitions (-DIL_STATIC_LIB)
35
24
set (LINKLIBS png tiff lzma Half IlmImf IlmThread Iex jasper jpeg z)
36
25
set_target_properties (springMapConvNG PROPERTIES LINK_FLAGS "-static" )
You can’t perform that action at this time.
0 commit comments