Allow the trackeditor to be built without having all the SD code

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8256 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 39693c94ef625c2f5a7ed0db2abf6460734eb6f7
Former-commit-id: 1f6ed874d243831d620cd19cbd203103218a53ef
This commit is contained in:
beaglejoe 2022-06-25 17:04:54 +00:00
parent a7dc858449
commit d036a8fdc2

View file

@ -1,4 +1,16 @@
INCLUDE(../../../cmake/macros.cmake)
# If the OPTION_TRACKEDITOR exists, then this is being built as part of
# the Speed-Dreams build. To allow building the trackeditor without
# building all of SD, set the _STANDALONE flag which is used to skip
# the SD specific calls
IF(OPTION_TRACKEDITOR)
INCLUDE(../../../cmake/macros.cmake)
SET(_STANDALONE False)
ELSE(OPTION_TRACKEDITOR)
SET(_STANDALONE True)
SET(SD_TOOLS_EXECPREFIX sd2-)
SET(SD_BINDIR bin)
ENDIF(OPTION_TRACKEDITOR)
FIND_PACKAGE(Java)
FIND_PACKAGE(Java COMPONENTS Development)
@ -155,8 +167,12 @@ IF(Java_Development_FOUND AND Java_FOUND)
INSTALL_JAR(${_TARGET_NAME} DESTINATION ${SD_BINDIR})
# install the jar dependencies
SD_INSTALL_FILES(BIN FILES ${JAVA_JARS})
IF(_STANDALONE)
INSTALL(FILES ${JAVA_JARS} DESTINATION ${SD_BINDIR})
ELSE(_STANDALONE)
# install the jar dependencies
SD_INSTALL_FILES(BIN FILES ${JAVA_JARS})
ENDIF(_STANDALONE)
# ========= Debug
#get_target_property(_jarFile TrackEditor JAR_FILE)