-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
32 lines (27 loc) · 1.33 KB
/
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
project(SpringMapConvNG)
cmake_minimum_required(VERSION 2.6)
#find_package(Qt4 REQUIRED)
if (NOT MINGW )
include_directories(${CMAKE_CURRENT_BINARY_DIR})
else ( NOT MINGW )
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/winlibs/Devil_${ARCH}/include )
link_directories( ${PROJECT_SOURCE_DIR}/winlibs/Devil_${ARCH}/lib ${PROJECT_SOURCE_DIR}/winlibs/Devil_${ARCH} )
endif ( NOT MINGW )
#qt4_automoc(${springMapConvNG_SRCS})
find_package(DevIL REQUIRED)
add_library(mapconv SHARED CRC.cpp Image.cpp SMFMap.cpp TileStorage.cpp )
add_library(mapconv_static STATIC CRC.cpp Image.cpp SMFMap.cpp TileStorage.cpp )
add_executable(springMapConvNG main.cpp)
add_executable(smfdecompiler decompiler.cpp)
if (NOT MINGW )
target_link_libraries(springMapConvNG IL ILU mapconv_static )
target_link_libraries(mapconv IL ILU )
target_link_libraries(smfdecompiler IL ILU mapconv_static )
else ( NOT MINGW )
target_link_libraries(springMapConvNG DevIL ILU mapconv )
target_link_libraries(mapconv DevIL ILU )
target_link_libraries(smfdecompiler DevIL ILU mapconv )
endif ( NOT MINGW )
install(TARGETS springMapConvNG smfdecompiler RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin )
install(TARGETS mapconv_static ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )
install(TARGETS mapconv LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib )