@@ -70,6 +70,7 @@ set(tmx_SRCS
70
70
src/MapLoaderPrivate.cpp
71
71
src/MapLayer.cpp
72
72
src/MapObject.cpp
73
+ src/miniz.c
73
74
src/QuadTreeNode.cpp
74
75
src/Log .cpp)
75
76
@@ -101,15 +102,15 @@ elseif(NOT SFML_FOUND)
101
102
message ("-> Make sure the SFML libraries with the same configuration (Release/Debug, Static/Dynamic) exist.\n " )
102
103
endif ()
103
104
104
- find_package (ZLIB REQUIRED)
105
+ # find_package(ZLIB REQUIRED)
105
106
106
- if (ZLIB_FOUND)
107
- include_directories (${ZLIB_INCLUDE_DIRS} )
108
- elseif (NOT ZLIB_FOUND)
109
- set (ZLIB_ROOT "" CACHE PATH "zlib top-level directory" )
110
- message ("\n -> zlib directory not found. Set ZLIB_ROOT to zlib's top-level path (containing \" include\" and \" lib\" directories)." )
111
- message ("-> Make sure the zlib libraries with the same configuration (Release/Debug, Static/Dynamic) exist.\n " )
112
- endif ()
107
+ # if(ZLIB_FOUND)
108
+ # include_directories(${ZLIB_INCLUDE_DIRS})
109
+ # elseif(NOT ZLIB_FOUND)
110
+ # set(ZLIB_ROOT "" CACHE PATH "zlib top-level directory")
111
+ # message("\n-> zlib directory not found. Set ZLIB_ROOT to zlib's top-level path (containing \"include\" and \"lib\" directories).")
112
+ # message("-> Make sure the zlib libraries with the same configuration (Release/Debug, Static/Dynamic) exist.\n")
113
+ # endif()
113
114
114
115
if (USE_BOX2D)
115
116
find_package (BOX2D)
@@ -125,7 +126,8 @@ endif()
125
126
endif ()
126
127
127
128
#target_link_libraries(pugi ${ZLIB_LIBRARIES})
128
- target_link_libraries (tmx-loader pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} ${ZLIB_LIBRARIES} )
129
+ #target_link_libraries(tmx-loader pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} ${ZLIB_LIBRARIES})
130
+ target_link_libraries (tmx-loader pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} )
129
131
130
132
# Adjust the output file prefix/suffix to match our conventions
131
133
if (BUILD_SHARED_LIBS )
@@ -171,28 +173,28 @@ install(DIRECTORY include DESTINATION .)
171
173
# Build and install the examples
172
174
if (TMX_BUILD_EXAMPLE)
173
175
add_executable (BenchMark examples/Benchmark.cpp)
174
- target_link_libraries (BenchMark ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} ${ZLIB_LIBRARIES} )
176
+ target_link_libraries (BenchMark ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} )
175
177
install (TARGETS BenchMark RUNTIME DESTINATION share/tmx/examples)
176
178
177
179
add_executable (DrawWithDebug examples/DrawMapWithDebug.cpp)
178
- target_link_libraries (DrawWithDebug ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} ${ZLIB_LIBRARIES} )
180
+ target_link_libraries (DrawWithDebug ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} )
179
181
install (TARGETS DrawWithDebug RUNTIME DESTINATION share/tmx/examples)
180
182
181
183
add_executable (Isometric examples/IsometricWithConvertCoords.cpp)
182
- target_link_libraries (Isometric ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} ${ZLIB_LIBRARIES} )
184
+ target_link_libraries (Isometric ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} )
183
185
install (TARGETS Isometric RUNTIME DESTINATION share/tmx/examples)
184
186
185
187
add_executable (QuadTree examples/MapWithQuadTree.cpp)
186
- target_link_libraries (QuadTree ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} ${ZLIB_LIBRARIES} )
188
+ target_link_libraries (QuadTree ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} )
187
189
install (TARGETS QuadTree RUNTIME DESTINATION share/tmx/examples)
188
190
189
191
add_executable (ShaderEffects examples/ShaderEffects.cpp)
190
- target_link_libraries (ShaderEffects ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} ${ZLIB_LIBRARIES} )
192
+ target_link_libraries (ShaderEffects ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} )
191
193
install (TARGETS ShaderEffects RUNTIME DESTINATION share/tmx/examples)
192
194
193
195
if (BOX2D_FOUND)
194
196
add_executable (Box2D examples/Box2D.cpp src/tmx2box2d.cpp)
195
- target_link_libraries (Box2D ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} ${ZLIB_LIBRARIES} ${ BOX2D_LIBRARIES} )
197
+ target_link_libraries (Box2D ${PROJECT_NAME} pugi ${SFML_LIBRARIES} ${SFML_DEPENDENCIES} ${BOX2D_LIBRARIES} )
196
198
install (TARGETS Box2D RUNTIME DESTINATION share/tmx/examples)
197
199
endif ()
198
200
0 commit comments