summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: 4e4d23f49321bc405548d93fac10a56a813f4c19 (plain)
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
include_directories(${ZLIB_INCLUDE_DIRS} ${PNG_INCLUDE_DIRS})
add_definitions(${PNG_DEFINITIONS})

add_executable(MinedMap
  MinedMap.cpp
  GZip.cpp
  Info.cpp
  PNG.cpp

  NBT/Tag.cpp
  Resource/Biome.cpp
  Resource/BlockType.cpp
  World/Block.cpp
  World/Chunk.cpp
  World/ChunkData.cpp
  World/Level.cpp
  World/Region.cpp
)
set_target_properties(MinedMap PROPERTIES COMPILE_FLAGS "-std=c++11 -Wall")
target_link_libraries(MinedMap ${ZLIB_LIBRARIES} ${PNG_LIBRARIES})

add_executable(nbtdump
  nbtdump.cpp
  GZip.cpp
  NBT/Tag.cpp
)
set_target_properties(nbtdump PROPERTIES COMPILE_FLAGS "-std=c++11 -Wall")
target_link_libraries(nbtdump ${ZLIB_LIBRARIES})

add_executable(regiondump
  regiondump.cpp
  GZip.cpp
  NBT/Tag.cpp
  World/ChunkData.cpp
  World/Region.cpp
)
set_target_properties(regiondump PROPERTIES COMPILE_FLAGS "-std=c++11 -Wall")
target_link_libraries(regiondump ${ZLIB_LIBRARIES})