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:
parent
afed650758
commit
d5fa80a0d4
1 changed files with 145 additions and 124 deletions
|
@ -883,6 +883,8 @@ ELSE()
|
|||
SET(FTE_SDL2_INCLUDES ${SDL2_INCLUDE_DIRS})
|
||||
ENDIF()
|
||||
|
||||
SET(FTE_TOOL_IQM true CACHE BOOL "Compile IQM Tool.")
|
||||
IF(FTE_TOOL_IQM)
|
||||
ADD_EXECUTABLE(iqmtool
|
||||
iqm/iqm.cpp
|
||||
plugins/models/gltf.c
|
||||
|
@ -893,7 +895,10 @@ ELSE()
|
|||
SET_TARGET_PROPERTIES(iqmtool PROPERTIES COMPILE_DEFINITIONS "IQMTOOL;${FTE_REVISON}")
|
||||
TARGET_LINK_LIBRARIES(iqmtool ${CMAKE_DL_LIBS})
|
||||
SET(INSTALLTARGS ${INSTALLTARGS} iqmtool)
|
||||
ENDIF()
|
||||
|
||||
SET(FTE_TOOL_IMAGE true CACHE BOOL "Compile Image Tool.")
|
||||
IF(FTE_TOOL_IMAGE)
|
||||
ADD_EXECUTABLE(imgtool
|
||||
engine/client/image.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}")
|
||||
TARGET_LINK_LIBRARIES(imgtool ${FTE_LIBS} )
|
||||
SET(INSTALLTARGS ${INSTALLTARGS} imgtool)
|
||||
ENDIF()
|
||||
|
||||
SET(FTE_TOOL_QTV true CACHE BOOL "Compile qtv server.")
|
||||
IF(FTE_TOOL_QTV)
|
||||
ADD_EXECUTABLE(qtv
|
||||
fteqtv/netchan.c
|
||||
fteqtv/parse.c
|
||||
|
@ -928,7 +936,10 @@ ELSE()
|
|||
TARGET_LINK_LIBRARIES(qtv ${SYS_LIBS})
|
||||
ENDIF()
|
||||
SET(INSTALLTARGS ${INSTALLTARGS} qtv)
|
||||
ENDIF()
|
||||
|
||||
SET(FTE_TOOL_MASTER true CACHE BOOL "Compile master server.")
|
||||
IF(FTE_TOOL_MASTER)
|
||||
IF(NOT WIN32)
|
||||
ADD_EXECUTABLE(ftemaster
|
||||
${FTESV_ARCH_FILES}
|
||||
|
@ -951,7 +962,10 @@ ELSE()
|
|||
TARGET_LINK_LIBRARIES(ftemaster ${FTESV_LIBS})
|
||||
SET(INSTALLTARGS ${INSTALLTARGS} ftemaster)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
SET(FTE_TOOL_HTTPSV true CACHE BOOL "Compile small http server.")
|
||||
IF(FTE_TOOL_HTTPSV)
|
||||
ADD_EXECUTABLE(httpserver
|
||||
engine/common/fs_stdio.c
|
||||
engine/http/httpserver.c
|
||||
|
@ -963,7 +977,10 @@ ELSE()
|
|||
TARGET_LINK_LIBRARIES(httpserver ws2_32)
|
||||
ENDIF()
|
||||
#SET(INSTALLTARGS ${INSTALLTARGS} httpserver)
|
||||
ENDIF()
|
||||
|
||||
SET(FTE_TOOL_QCC true CACHE BOOL "Compile commandline qc compiler.")
|
||||
IF(FTE_TOOL_QCC)
|
||||
ADD_EXECUTABLE(fteqcc
|
||||
engine/qclib/qcctui.c
|
||||
engine/qclib/comprout.c
|
||||
|
@ -978,7 +995,10 @@ ELSE()
|
|||
SET_TARGET_PROPERTIES(fteqcc PROPERTIES COMPILE_DEFINITIONS "${FTE_LIB_DEFINES};${FTE_REVISON}")
|
||||
TARGET_LINK_LIBRARIES(fteqcc ${FTEQCC_LIBS} ${SYS_LIBS})
|
||||
SET(INSTALLTARGS ${INSTALLTARGS} fteqcc)
|
||||
ENDIF()
|
||||
|
||||
SET(FTE_TOOL_QCCGUI true CACHE BOOL "Compile gui qc compiler.")
|
||||
IF(FTE_TOOL_QCCGUI)
|
||||
IF(${WIN32})
|
||||
ADD_EXECUTABLE(fteqccgui WIN32
|
||||
engine/qclib/qccgui.c
|
||||
|
@ -1037,6 +1057,7 @@ ELSE()
|
|||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
IF(0)
|
||||
#software renderer plugin
|
||||
|
|
Loading…
Reference in a new issue