1
0
Fork 0
forked from fte/fteqw

Tweak the cmake stuff to make it easier to exclude various specific targets for no real reason.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5852 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-05-13 10:17:21 +00:00
parent afed650758
commit d5fa80a0d4

View file

@ -883,6 +883,8 @@ ELSE()
SET(FTE_SDL2_INCLUDES ${SDL2_INCLUDE_DIRS}) SET(FTE_SDL2_INCLUDES ${SDL2_INCLUDE_DIRS})
ENDIF() ENDIF()
SET(FTE_TOOL_IQM true CACHE BOOL "Compile IQM Tool.")
IF(FTE_TOOL_IQM)
ADD_EXECUTABLE(iqmtool ADD_EXECUTABLE(iqmtool
iqm/iqm.cpp iqm/iqm.cpp
plugins/models/gltf.c plugins/models/gltf.c
@ -893,7 +895,10 @@ ELSE()
SET_TARGET_PROPERTIES(iqmtool PROPERTIES COMPILE_DEFINITIONS "IQMTOOL;${FTE_REVISON}") SET_TARGET_PROPERTIES(iqmtool PROPERTIES COMPILE_DEFINITIONS "IQMTOOL;${FTE_REVISON}")
TARGET_LINK_LIBRARIES(iqmtool ${CMAKE_DL_LIBS}) TARGET_LINK_LIBRARIES(iqmtool ${CMAKE_DL_LIBS})
SET(INSTALLTARGS ${INSTALLTARGS} iqmtool) SET(INSTALLTARGS ${INSTALLTARGS} iqmtool)
ENDIF()
SET(FTE_TOOL_IMAGE true CACHE BOOL "Compile Image Tool.")
IF(FTE_TOOL_IMAGE)
ADD_EXECUTABLE(imgtool ADD_EXECUTABLE(imgtool
engine/client/image.c engine/client/image.c
imgtool.c imgtool.c
@ -902,7 +907,10 @@ ELSE()
SET_TARGET_PROPERTIES(imgtool PROPERTIES COMPILE_DEFINITIONS "IMGTOOL;${FTE_LIB_DEFINES};${FTE_DEFINES};${FTE_REVISON};${FTE_SDL2}") SET_TARGET_PROPERTIES(imgtool PROPERTIES COMPILE_DEFINITIONS "IMGTOOL;${FTE_LIB_DEFINES};${FTE_DEFINES};${FTE_REVISON};${FTE_SDL2}")
TARGET_LINK_LIBRARIES(imgtool ${FTE_LIBS} ) TARGET_LINK_LIBRARIES(imgtool ${FTE_LIBS} )
SET(INSTALLTARGS ${INSTALLTARGS} imgtool) SET(INSTALLTARGS ${INSTALLTARGS} imgtool)
ENDIF()
SET(FTE_TOOL_QTV true CACHE BOOL "Compile qtv server.")
IF(FTE_TOOL_QTV)
ADD_EXECUTABLE(qtv ADD_EXECUTABLE(qtv
fteqtv/netchan.c fteqtv/netchan.c
fteqtv/parse.c fteqtv/parse.c
@ -928,7 +936,10 @@ ELSE()
TARGET_LINK_LIBRARIES(qtv ${SYS_LIBS}) TARGET_LINK_LIBRARIES(qtv ${SYS_LIBS})
ENDIF() ENDIF()
SET(INSTALLTARGS ${INSTALLTARGS} qtv) SET(INSTALLTARGS ${INSTALLTARGS} qtv)
ENDIF()
SET(FTE_TOOL_MASTER true CACHE BOOL "Compile master server.")
IF(FTE_TOOL_MASTER)
IF(NOT WIN32) IF(NOT WIN32)
ADD_EXECUTABLE(ftemaster ADD_EXECUTABLE(ftemaster
${FTESV_ARCH_FILES} ${FTESV_ARCH_FILES}
@ -951,7 +962,10 @@ ELSE()
TARGET_LINK_LIBRARIES(ftemaster ${FTESV_LIBS}) TARGET_LINK_LIBRARIES(ftemaster ${FTESV_LIBS})
SET(INSTALLTARGS ${INSTALLTARGS} ftemaster) SET(INSTALLTARGS ${INSTALLTARGS} ftemaster)
ENDIF() ENDIF()
ENDIF()
SET(FTE_TOOL_HTTPSV true CACHE BOOL "Compile small http server.")
IF(FTE_TOOL_HTTPSV)
ADD_EXECUTABLE(httpserver ADD_EXECUTABLE(httpserver
engine/common/fs_stdio.c engine/common/fs_stdio.c
engine/http/httpserver.c engine/http/httpserver.c
@ -963,7 +977,10 @@ ELSE()
TARGET_LINK_LIBRARIES(httpserver ws2_32) TARGET_LINK_LIBRARIES(httpserver ws2_32)
ENDIF() ENDIF()
#SET(INSTALLTARGS ${INSTALLTARGS} httpserver) #SET(INSTALLTARGS ${INSTALLTARGS} httpserver)
ENDIF()
SET(FTE_TOOL_QCC true CACHE BOOL "Compile commandline qc compiler.")
IF(FTE_TOOL_QCC)
ADD_EXECUTABLE(fteqcc ADD_EXECUTABLE(fteqcc
engine/qclib/qcctui.c engine/qclib/qcctui.c
engine/qclib/comprout.c engine/qclib/comprout.c
@ -978,7 +995,10 @@ ELSE()
SET_TARGET_PROPERTIES(fteqcc PROPERTIES COMPILE_DEFINITIONS "${FTE_LIB_DEFINES};${FTE_REVISON}") SET_TARGET_PROPERTIES(fteqcc PROPERTIES COMPILE_DEFINITIONS "${FTE_LIB_DEFINES};${FTE_REVISON}")
TARGET_LINK_LIBRARIES(fteqcc ${FTEQCC_LIBS} ${SYS_LIBS}) TARGET_LINK_LIBRARIES(fteqcc ${FTEQCC_LIBS} ${SYS_LIBS})
SET(INSTALLTARGS ${INSTALLTARGS} fteqcc) SET(INSTALLTARGS ${INSTALLTARGS} fteqcc)
ENDIF()
SET(FTE_TOOL_QCCGUI true CACHE BOOL "Compile gui qc compiler.")
IF(FTE_TOOL_QCCGUI)
IF(${WIN32}) IF(${WIN32})
ADD_EXECUTABLE(fteqccgui WIN32 ADD_EXECUTABLE(fteqccgui WIN32
engine/qclib/qccgui.c engine/qclib/qccgui.c
@ -1037,6 +1057,7 @@ ELSE()
ENDIF() ENDIF()
ENDIF() ENDIF()
ENDIF() ENDIF()
ENDIF()
IF(0) IF(0)
#software renderer plugin #software renderer plugin