X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=radiant%2FCMakeLists.txt;h=93fedea428a461f615136ae3964c7d2e9e5f0238;hb=9fef3cfa8dceb62848e254c697926b6539a9e117;hp=a882ffe27235e918bedccca1e44847f6aac7b82d;hpb=3ecc3113aeea149ab79b3701dd87e52e5689458a;p=xonotic%2Fnetradiant.git diff --git a/radiant/CMakeLists.txt b/radiant/CMakeLists.txt index a882ffe2..93fedea4 100644 --- a/radiant/CMakeLists.txt +++ b/radiant/CMakeLists.txt @@ -90,15 +90,18 @@ set(RADIANTLIST xmlstuff.cpp xmlstuff.h xywindow.cpp xywindow.h ) + if (WIN32) list(APPEND RADIANTLIST multimon.cpp multimon.h) -endif() +endif () -add_executable(radiant WIN32 radiant.rc ${RADIANTLIST}) -target_link_libraries(radiant +radiant_tool(${RADIANT_BASENAME} WIN32 radiant.rc ${RADIANTLIST}) +add_dependencies(${RADIANT_BASENAME} modules) +target_link_libraries(${RADIANT_BASENAME} ${CMAKE_DL_LIBS} ${LIBXML2_LIBRARIES} ${OPENGL_gl_LIBRARY} + ${GTK${GTK_TARGET}_LIBRARIES} ${GTKGL_LIBRARIES} includes cmdlib @@ -124,6 +127,9 @@ target_link_libraries(radiant uilib xmllib ) + if (X11_LIBRARIES) - target_link_libraries(radiant ${X11_LIBRARIES}) + target_link_libraries(${RADIANT_BASENAME} ${X11_LIBRARIES}) endif () + +copy_dlls(${RADIANT_BASENAME})