Skip to content

Commit

Permalink
Use found ZLIB instead of hardcoded paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Mar 10, 2012
1 parent 5199ad9 commit e30ae15
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,6 @@ SET(PROJECT_SRCS
source/df2minecraft.cpp
)

if(WIN32)
include_directories(
${dfhack_SOURCE_DIR}/library/depends/zlib/
${dfhack_SOURCE_DIR}/library/depends/tinyxml/
${CMAKE_SOURCE_DIR}
)
LINK_DIRECTORIES (
${LINK_DIRECTORIES}
${dfhack_SOURCE_DIR}/library/depends/zlib/
)
DFHACK_PLUGIN(df2minecraft ${PROJECT_SRCS} LINK_LIBRARIES zlib.lib)
else()
include_directories(
${dfhack_SOURCE_DIR}/library/depends/tinyxml/
${CMAKE_SOURCE_DIR}
)
DFHACK_PLUGIN(df2minecraft ${PROJECT_SRCS} LINK_LIBRARIES z)
endif()
DFHACK_PLUGIN(df2minecraft ${PROJECT_SRCS} LINK_LIBRARIES ${ZLIB_LIBRARIES})

INSTALL(FILES df2mc.xml DESTINATION ${DFHACK_DATA_DESTINATION})

0 comments on commit e30ae15

Please sign in to comment.