diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-01-08 18:21:22 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-01-08 18:21:22 +0200 |
commit | d90a183b01042c90c9ea02627f00f585e3083e52 (patch) | |
tree | 752a72617ec4b5ce4f047f4c53e7c5c842722761 | |
parent | d435dedb898c7d268dfea3504a38a2cd9998bdb2 (diff) | |
download | minetest-d90a183b01042c90c9ea02627f00f585e3083e52.tar.gz minetest-d90a183b01042c90c9ea02627f00f585e3083e52.tar.bz2 minetest-d90a183b01042c90c9ea02627f00f585e3083e52.zip |
Fixed some missing linking to libraries
-rw-r--r-- | src/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e55e502f9..6aed1543f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -12,9 +12,10 @@ if(UNIX) find_package(OpenGL REQUIRED) find_package(JPEG REQUIRED) find_package(BZip2 REQUIRED) + find_package(PNG REQUIRED) endif(BUILD_CLIENT) find_package(ZLIB REQUIRED) - set(SERVER_PLATFORM_LIBS -lpthread) + set(PLATFORM_LIBS -lpthread) elseif(WIN32) # Windows # Surpress some warnings @@ -98,6 +99,7 @@ include_directories( ${ZLIB_INCLUDE_DIR} ${CMAKE_BUILD_TYPE} "${PROJECT_SOURCE_DIR}/jthread" + ${PNG_INCLUDE_DIR} ) set(EXECUTABLE_OUTPUT_PATH ../bin) @@ -111,7 +113,10 @@ if(BUILD_CLIENT) ${OPENGL_LIBRARIES} ${JPEG_LIBRARIES} ${BZIP2_LIBRARIES} + ${PNG_LIBRARIES} + ${X11_LIBRARIES} jthread + ${PLATFORM_LIBS} ) endif(BUILD_CLIENT) if(BUILD_SERVER) @@ -120,7 +125,7 @@ if(BUILD_SERVER) minetestserver ${ZLIB_LIBRARIES} jthread - ${SERVER_PLATFORM_LIBS} + ${PLATFORM_LIBS} ) endif(BUILD_SERVER) |