]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/CMakeLists.txt
q3map2: Forgot to commit game_smokinguns.h, thanks TheDoctor for the remind
[xonotic/netradiant.git] / radiant / CMakeLists.txt
index a882ffe27235e918bedccca1e44847f6aac7b82d..424c42d6675e97bab647222f69af668cc74bd129 100644 (file)
@@ -92,13 +92,15 @@ set(RADIANTLIST
 )
 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
@@ -125,5 +127,8 @@ target_link_libraries(radiant
     xmllib
 )
 if (X11_LIBRARIES)
-    target_link_libraries(radiant ${X11_LIBRARIES})
+    target_link_libraries(${RADIANT_BASENAME} ${X11_LIBRARIES})
 endif ()
+
+copy_dlls(${RADIANT_BASENAME})
+bundle_stuff(${RADIANT_BASENAME})