From: TimePath Date: Fri, 22 Jan 2016 05:44:19 +0000 (+1100) Subject: target_link_libraries X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e6bf29bf18e182c457e34bf81a19ab8b680ffd9a;p=xonotic%2Fnetradiant.git target_link_libraries --- diff --git a/contrib/bobtoolz/CMakeLists.txt b/contrib/bobtoolz/CMakeLists.txt index 8d8a9597..36cc2bf5 100644 --- a/contrib/bobtoolz/CMakeLists.txt +++ b/contrib/bobtoolz/CMakeLists.txt @@ -77,4 +77,4 @@ radiant_plugin(bobtoolz visfind.h ) -target_link_libraries(bobtoolz cmdlib mathlib profile) +target_link_libraries(bobtoolz cmdlib mathlib profile ${GLIB_LIBRARIES} ${GTK2_LIBRARIES}) diff --git a/contrib/brushexport/CMakeLists.txt b/contrib/brushexport/CMakeLists.txt index 95f82797..fe428c27 100644 --- a/contrib/brushexport/CMakeLists.txt +++ b/contrib/brushexport/CMakeLists.txt @@ -10,3 +10,5 @@ radiant_plugin(brushexport support.cpp support.h ) + +target_link_libraries(brushexport ${GTK2_LIBRARIES}) diff --git a/contrib/prtview/CMakeLists.txt b/contrib/prtview/CMakeLists.txt index 66205cfb..3de63046 100644 --- a/contrib/prtview/CMakeLists.txt +++ b/contrib/prtview/CMakeLists.txt @@ -12,4 +12,4 @@ radiant_plugin(prtview prtview.h ) -target_link_libraries(prtview profile) +target_link_libraries(prtview profile ${GTK2_LIBRARIES}) diff --git a/contrib/shaderplug/CMakeLists.txt b/contrib/shaderplug/CMakeLists.txt index a8f3e7d4..df2c6297 100644 --- a/contrib/shaderplug/CMakeLists.txt +++ b/contrib/shaderplug/CMakeLists.txt @@ -4,4 +4,4 @@ radiant_plugin(shaderplug shaderplug.h ) -target_link_libraries(shaderplug xmllib) +target_link_libraries(shaderplug xmllib ${GTK2_LIBRARIES}) diff --git a/contrib/sunplug/CMakeLists.txt b/contrib/sunplug/CMakeLists.txt index 24043c98..97735735 100644 --- a/contrib/sunplug/CMakeLists.txt +++ b/contrib/sunplug/CMakeLists.txt @@ -2,3 +2,5 @@ radiant_plugin(sunplug sunplug.cpp sunplug.h ) + +target_link_libraries(sunplug ${GTK2_LIBRARIES}) diff --git a/contrib/ufoaiplug/CMakeLists.txt b/contrib/ufoaiplug/CMakeLists.txt index 5989407a..f8a1569e 100644 --- a/contrib/ufoaiplug/CMakeLists.txt +++ b/contrib/ufoaiplug/CMakeLists.txt @@ -9,3 +9,5 @@ radiant_plugin(ufoaiplug ufoai_level.cpp ufoai_level.h ) + +target_link_libraries(ufoaiplug ${GTK2_LIBRARIES}) diff --git a/plugins/archivezip/CMakeLists.txt b/plugins/archivezip/CMakeLists.txt index 42ab4614..bb4357b6 100644 --- a/plugins/archivezip/CMakeLists.txt +++ b/plugins/archivezip/CMakeLists.txt @@ -9,3 +9,8 @@ radiant_plugin(archivezip zlibstream.cpp zlibstream.h ) + +find_package(ZLIB REQUIRED) +include_directories(${ZLIB_INCLUDE_DIRS}) + +target_link_libraries(archivezip ${ZLIB_LIBRARIES}) diff --git a/plugins/imagepng/CMakeLists.txt b/plugins/imagepng/CMakeLists.txt index e6b32c1d..786427a2 100644 --- a/plugins/imagepng/CMakeLists.txt +++ b/plugins/imagepng/CMakeLists.txt @@ -2,3 +2,8 @@ radiant_plugin(imagepng plugin.cpp plugin.h ) + +find_package(PNG REQUIRED) +include_directories(${PNG_INCLUDE_DIR}) + +target_link_libraries(imagepng ${PNG_LIBRARIES}) diff --git a/plugins/mapxml/CMakeLists.txt b/plugins/mapxml/CMakeLists.txt index f8ef4830..c57840c9 100644 --- a/plugins/mapxml/CMakeLists.txt +++ b/plugins/mapxml/CMakeLists.txt @@ -7,3 +7,8 @@ radiant_plugin(mapxml xmlwrite.cpp xmlwrite.h ) + +find_package(LibXml2 REQUIRED) +include_directories(${LIBXML2_INCLUDE_DIR}) + +target_link_libraries(mapxml ${LIBXML2_LIBRARIES}) diff --git a/plugins/shaders/CMakeLists.txt b/plugins/shaders/CMakeLists.txt index eeb7c24c..1d1cbf14 100644 --- a/plugins/shaders/CMakeLists.txt +++ b/plugins/shaders/CMakeLists.txt @@ -5,3 +5,8 @@ radiant_plugin(shaders shaders.cpp shaders.h ) + +find_package(GLIB REQUIRED) +include_directories(${GLIB_INCLUDE_DIRS}) + +target_link_libraries(shaders ${GLIB_LIBRARIES}) diff --git a/plugins/vfspk3/CMakeLists.txt b/plugins/vfspk3/CMakeLists.txt index 2b0efc36..e1f3daa2 100644 --- a/plugins/vfspk3/CMakeLists.txt +++ b/plugins/vfspk3/CMakeLists.txt @@ -8,4 +8,7 @@ radiant_plugin(vfspk3 vfspk3.h ) -target_link_libraries(vfspk3 filematch) +find_package(GLIB REQUIRED) +include_directories(${GLIB_INCLUDE_DIRS}) + +target_link_libraries(vfspk3 filematch ${GLIB_LIBRARIES})