X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=radiant%2FCMakeLists.txt;h=6fcb36809d27fa167e98fa8a4661672d42f47e66;hb=7f395ee920ea60ff60e0ab26b11f73cd28aca265;hp=05d79830fe4fa2b56bdcadedc996d9ed325cffc9;hpb=cd6613e5171544b68d4ae70546c90a15c99b22a5;p=xonotic%2Fnetradiant.git diff --git a/radiant/CMakeLists.txt b/radiant/CMakeLists.txt index 05d79830..6fcb3680 100644 --- a/radiant/CMakeLists.txt +++ b/radiant/CMakeLists.txt @@ -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})