${ZLIB_INCLUDE_DIR}
${CMAKE_BUILD_TYPE}
${PNG_INCLUDE_DIR}
- ${GETTEXT_INCLUDE_DIR}
${SOUND_INCLUDE_DIRS}
${SQLITE3_INCLUDE_DIR}
${LUA_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/script
)
+if(USE_GETTEXT)
+ include_directories(${GETTEXT_INCLUDE_DIR})
+endif()
if(USE_FREETYPE)
include_directories(${FREETYPE_INCLUDE_DIRS})
${BZIP2_LIBRARIES}
${PNG_LIBRARIES}
${X11_LIBRARIES}
- ${GETTEXT_LIBRARY}
${SOUND_LIBRARIES}
${SQLITE3_LIBRARY}
${LUA_LIBRARY}
${client_LIBS}
)
endif()
+ if(USE_GETTEXT)
+ target_link_libraries(
+ ${PROJECT_NAME}
+ ${GETTEXT_LIBRARY}
+ )
+ endif()
if(USE_CURL)
target_link_libraries(
${PROJECT_NAME}
${ZLIB_LIBRARIES}
${SQLITE3_LIBRARY}
${JSON_LIBRARY}
- ${GETTEXT_LIBRARY}
${LUA_LIBRARY}
${GMP_LIBRARY}
${PLATFORM_LIBS}
)
set_target_properties(${PROJECT_NAME}server PROPERTIES
COMPILE_DEFINITIONS "SERVER")
+ if (USE_GETTEXT)
+ target_link_libraries(${PROJECT_NAME}server ${GETTEXT_LIBRARY})
+ endif()
if (USE_CURSES)
target_link_libraries(${PROJECT_NAME}server ${CURSES_LIBRARIES})
endif()