string(REGEX REPLACE "^[.]" "" RADIANT_EXECUTABLE ${CMAKE_EXECUTABLE_SUFFIX})
endif ()
- macro (console_app name)
- if (WIN32)
- target_link_libraries(${name} -mconsole)
- endif ()
- endmacro ()
-
- macro (window_app name)
- if (WIN32)
- target_link_libraries(${name} -mwindows)
- endif ()
- endmacro ()
-
macro (radiant_tool name)
if (BUNDLE_LIBRARIES AND WIN32)
add_executable(${name} ${ARGN} ${PROJECT_SOURCE_DIR}/include/lib.rc)
xmllib
)
-window_app(${RADIANT_BASENAME})
-
if (X11_LIBRARIES)
target_link_libraries(${RADIANT_BASENAME} ${X11_LIBRARIES})
endif ()
include_directories(${LIBXML2_INCLUDE_DIR})
radiant_tool(q2map
- WIN32 q2map/q2map.rc
+ q2map/q2map.rc
common/bspfile.c common/bspfile.h
common/cmdlib.c common/cmdlib.h
q2map/writebsp.c
)
-console_app(q2map)
-window_app(q2map)
-
target_compile_definitions(q2map
PRIVATE
)
)
radiant_tool(qdata3
- WIN32 qdata/qdata.rc
+ qdata/qdata.rc
common/bspfile.c common/bspfile.h
common/cmdlib.c common/cmdlib.h
qdata/video.c
)
-console_app(qdata3)
-
target_compile_definitions(qdata3
PRIVATE
)
include_directories(${LIBXML2_INCLUDE_DIR})
radiant_tool(h2data
- WIN32 h2data.rc
+ h2data.rc
common/bspfile.c common/bspfile.h
common/cmdlib.c common/cmdlib.h
video.c
)
-console_app(h2data)
-
target_compile_definitions(h2data
PRIVATE
)
)
radiant_tool(q3map2
- WIN32 q3map2/q3map2.rc
+ q3map2/q3map2.rc
common/cmdlib.c common/cmdlib.h
common/imagelib.c common/imagelib.h
q3map2/writebsp.c
)
-console_app(q3map2)
-
if (BUILD_CRUNCH)
set(OPTIONAL_IMAGE_LIBRARIES crnrgba)
set(OPTIONAL_IMAGE_DEFINES BUILD_CRUNCH=1)
)
radiant_tool(q3data
- WIN32 q3data/q3data.rc
+ q3data/q3data.rc
common/aselib.c common/aselib.h
common/bspfile.c common/bspfile.h
q3data/video.c
)
-console_app(q3data)
-
target_link_libraries(q3data
${GLIB_LIBRARIES}
${LIBXML2_LIBRARIES}