]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/CMakeLists.txt
Remove -Wno-pedantic
[xonotic/netradiant.git] / radiant / CMakeLists.txt
index 895630638f7d626489d114d6b544e050dddbf951..05d79830fe4fa2b56bdcadedc996d9ed325cffc9 100644 (file)
@@ -94,12 +94,13 @@ if (WIN32)
     list(APPEND RADIANTLIST multimon.cpp multimon.h)
 endif()
 
-add_executable(radiant WIN32 radiant.rc ${RADIANTLIST})
+radiant_tool(radiant WIN32 radiant.rc ${RADIANTLIST})
+add_dependencies(radiant modules)
 target_link_libraries(radiant
     ${CMAKE_DL_LIBS}
     ${LIBXML2_LIBRARIES}
     ${OPENGL_gl_LIBRARY}
-    ${${GTK_NS}_LIBRARIES}
+    ${GTK${GTK_TARGET}_LIBRARIES}
     ${GTKGL_LIBRARIES}
     includes
     cmdlib
@@ -130,8 +131,3 @@ if (X11_LIBRARIES)
 endif ()
 
 copy_dlls(radiant)
-
-install(
-        TARGETS radiant
-        RUNTIME DESTINATION .
-)