]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
cmake: rename “radiant” binary to “netradiant”
authorThomas Debesse <dev@illwieckz.net>
Wed, 18 Apr 2018 18:34:00 +0000 (20:34 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sat, 18 May 2019 20:47:42 +0000 (22:47 +0200)
CMakeLists.txt
radiant/CMakeLists.txt

index 7bc63919e11d7e0db991d2ae852360d186b0c12b..1336f3b1bc576f156f3bae99f4839ed005d46652 100644 (file)
@@ -242,7 +242,7 @@ endmacro()
 
 if (BUILD_RADIANT)
     add_subdirectory(radiant _radiant)
-    set_target_properties(radiant PROPERTIES
+    set_target_properties(${RADIANT_BASENAME} PROPERTIES
             COMPILE_DEFINITIONS RADIANT_EXECUTABLE="${RADIANT_EXECUTABLE}"
             )
 endif ()
index 05d79830fe4fa2b56bdcadedc996d9ed325cffc9..6fcb36809d27fa167e98fa8a4661672d42f47e66 100644 (file)
@@ -92,11 +92,11 @@ set(RADIANTLIST
 )
 if (WIN32)
     list(APPEND RADIANTLIST multimon.cpp multimon.h)
-endif()
+endif ()
 
-radiant_tool(radiant WIN32 radiant.rc ${RADIANTLIST})
-add_dependencies(radiant modules)
-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}
@@ -127,7 +127,7 @@ 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)
+copy_dlls(${RADIANT_BASENAME})