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 11project (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)
173
4+ set (CMAKE_CXX_STANDARD 11)
185find_package (DevIL REQUIRED)
196
207
@@ -30,7 +17,9 @@ set(MAPCONV_FILES
3017add_executable (springMapConvNG src/main.cpp ${MAPCONV_FILES} )
3118add_executable (smfdecompiler src/decompiler.cpp ${MAPCONV_FILES} )
3219
33- if (FALSE ) # change to TRUE when compiling with statix mxe
20+ option (MAPCONV_STATIC "link static" FALSE )
21+
22+ if (MAPCONV_STATIC)
3423 add_definitions (-DIL_STATIC_LIB)
3524 set (LINKLIBS png tiff lzma Half IlmImf IlmThread Iex jasper jpeg z)
3625 set_target_properties (springMapConvNG PROPERTIES LINK_FLAGS "-static" )
You can’t perform that action at this time.
0 commit comments