1 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}")
3 find_package(OpenGL REQUIRED)
5 string(SUBSTRING ${CMAKE_SHARED_MODULE_SUFFIX} 1 -1 _clibext)
6 add_definitions(-DCMAKE_SHARED_MODULE_SUFFIX="${_clibext}")
10 autosave.cpp autosave.h
12 brush_primit.cpp brush_primit.h
13 brushmanip.cpp brushmanip.h
14 brushmodule.cpp brushmodule.h
15 brushnode.cpp brushnode.h
16 brushtokens.cpp brushtokens.h
17 brushxml.cpp brushxml.h
19 camwindow.cpp camwindow.h
20 clippertool.cpp clippertool.h
21 commands.cpp commands.h
26 eclass_def.cpp eclass_def.h
27 eclass_doom3.cpp eclass_doom3.h
28 eclass_fgd.cpp eclass_fgd.h
29 eclass_xml.cpp eclass_xml.h
31 entityinspector.cpp entityinspector.h
32 entitylist.cpp entitylist.h
33 environment.cpp environment.h
35 feedback.cpp feedback.h
36 filetypes.cpp filetypes.h
38 findtexturedialog.cpp findtexturedialog.h
39 glwidget.cpp glwidget.h
41 groupdialog.cpp groupdialog.h
47 mainframe.cpp mainframe.h
50 nullmodel.cpp nullmodel.h
53 patchdialog.cpp patchdialog.h
54 patchmanip.cpp patchmanip.h
55 patchmodule.cpp patchmodule.h
57 pluginapi.cpp pluginapi.h
58 pluginmanager.cpp pluginmanager.h
59 pluginmenu.cpp pluginmenu.h
60 plugintoolbar.cpp plugintoolbar.h
62 preferencedictionary.cpp preferencedictionary.h
63 preferences.cpp preferences.h
66 referencecache.cpp referencecache.h
67 renderer.cpp renderer.h
68 renderstate.cpp renderstate.h
70 scenegraph.cpp scenegraph.h
72 selection.cpp selection.h
76 stacktrace.cpp stacktrace.h
77 surfacedialog.cpp surfacedialog.h
78 texmanip.cpp texmanip.h
79 textureentry.cpp textureentry.h
80 textures.cpp textures.h
81 texwindow.cpp texwindow.h
83 treemodel.cpp treemodel.h
87 watchbsp.cpp watchbsp.h
89 windowobservers.cpp windowobservers.h
90 xmlstuff.cpp xmlstuff.h
91 xywindow.cpp xywindow.h
95 list(APPEND RADIANTLIST multimon.cpp multimon.h)
98 radiant_tool(${RADIANT_BASENAME} WIN32 radiant.rc ${RADIANTLIST})
99 add_dependencies(${RADIANT_BASENAME} modules)
100 target_link_libraries(${RADIANT_BASENAME}
104 ${GTK${GTK_TARGET}_LIBRARIES}
132 target_link_libraries(${RADIANT_BASENAME} ${X11_LIBRARIES})
135 # PIE executables were wrongly recognized as shared libraries on Linux
136 # because of a mistake in the mime-type library.
137 # Because of that it was not possible to launch such executables from
139 # While the problem is fixed upstream, most distributions still ship
140 # with a faulty mime-type library and may do for a long time.
141 # See: https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/11
142 if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
143 target_link_libraries(${RADIANT_BASENAME} -no-pie)
146 copy_dlls(${RADIANT_BASENAME})