Re #721 Made most useful source files appear in QtCreator and MSVC IDEs, for easy editing (+ cleaned up commented CMake code)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4959 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
parent
40d0ce8c58
commit
50aa464a27
|
@ -107,10 +107,13 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config.h.in.cmake
|
|||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/cmake/doxygenconfig.in.cmake
|
||||
${CMAKE_CURRENT_BINARY_DIR}/doxygen_config @ONLY)
|
||||
|
||||
# Install top tree data files
|
||||
SD_INSTALL_FILES(DATA "/"
|
||||
FILES credits.xml
|
||||
CHANGES.txt COPYING.txt INSTALL.txt README.txt TODO.txt)
|
||||
|
||||
# Fictive = no-output target, for having source files available in IDEs.
|
||||
SET(_SOURCES credits.xml CHANGES.txt COPYING.txt INSTALL.txt README.txt TODO.txt)
|
||||
ADD_CUSTOM_TARGET(rootdoc SOURCES ${_SOURCES})
|
||||
|
||||
# Install top tree data files
|
||||
SD_INSTALL_FILES(DATA "/" FILES ${_SOURCES})
|
||||
|
||||
# Sub-dirs to build ...
|
||||
ADD_SUBDIRECTORY(src)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
INCLUDE(../cmake/macros.cmake)
|
||||
|
||||
SD_INSTALL_FILES(DATA cmake FILES split_argn.cmake robot_def.cmake FindENET.cmake FindPLIB.cmake FindSOLID.cmake)
|
||||
|
||||
SD_INSTALL_FILES(DATA cmake FILES splitargn.cmake robot.def.in.cmake FindENET.cmake FindPLIB.cmake FindSOLID.cmake)
|
||||
|
|
|
@ -5,4 +5,7 @@ SET(INTERFACES_HEADERS car.h graphic.h playerpref.h raceman.h
|
|||
iraceengine.h iuserinterface.h igraphicsengine.h
|
||||
iphysicsengine.h itrackloader.h isoundengine.h)
|
||||
|
||||
# Fictive = no-output target, for having source files available in IDEs.
|
||||
ADD_CUSTOM_TARGET(interfaces SOURCES ${INTERFACES_HEADERS})
|
||||
|
||||
SD_INSTALL_FILES(INCLUDE FILES ${INTERFACES_HEADERS})
|
||||
|
|
|
@ -4,8 +4,8 @@ INCLUDE(../../../cmake/macros.cmake)
|
|||
|
||||
SET(EPHEMERIS_SOURCES celestialbody.cpp ephemeris.cpp jupiter.cpp mars.cpp
|
||||
mercury.cpp moonpos.cpp neptune.cpp saturn.cpp
|
||||
star.cpp stardata.cpp uranus.cpp venus.cpp
|
||||
celestialbody.h ephemeris.h jupiter.h mars.h mercury.h
|
||||
star.cpp stardata.cpp uranus.cpp venus.cpp)
|
||||
SET(EPHEMERIS_HEADERS celestialbody.h ephemeris.h jupiter.h mars.h mercury.h
|
||||
moonpos.h neptune.h pluto.h saturn.h star.h stardata.h
|
||||
uranus.h venus.h)
|
||||
|
||||
|
@ -29,7 +29,8 @@ IF (COMMAND CMAKE_POLICY)
|
|||
CMAKE_POLICY(SET CMP0003 NEW)
|
||||
ENDIF(COMMAND CMAKE_POLICY)
|
||||
|
||||
ADD_LIBRARY(ephemeris SHARED ${EPHEMERIS_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(ephemeris SHARED ${EPHEMERIS_SOURCES} ${EPHEMERIS_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(ephemeris PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
@ -44,7 +45,5 @@ ELSE(WIN32)
|
|||
SD_INSTALL_FILES(LIB lib TARGETS ephemeris)
|
||||
ENDIF(WIN32)
|
||||
|
||||
SD_INSTALL_FILES(INCLUDE FILES celestialbody.h ephemeris.h jupiter.h mars.h mercury.h
|
||||
moonpos.h neptune.h pluto.h saturn.h star.h stardata.h
|
||||
uranus.h venus.h)
|
||||
SD_INSTALL_FILES(INCLUDE FILES ${EPHEMERIS_HEADERS})
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@ INCLUDE(../../../cmake/macros.cmake)
|
|||
#PROJECT(learning)
|
||||
|
||||
SET(LEARNING_HEADERS learning.h ANN.h ann_policy.h Distribution.h learn_debug.h List.h
|
||||
MathFunctions.h policy.h real.h string_utils.h)
|
||||
MathFunctions.h policy.h real.h string_utils.h)
|
||||
SET(LEARNING_SOURCES ANN.cpp Distribution.cpp List.cpp MathFunctions.cpp
|
||||
ann_policy.cpp policy.cpp string_utils.cpp
|
||||
${LEARNING_HEADERS})
|
||||
ann_policy.cpp policy.cpp string_utils.cpp)
|
||||
SET(LEARNING_OTHER_SOURCES README)
|
||||
|
||||
ADD_SDLIB_INCLUDEDIR(portability)
|
||||
|
||||
|
@ -20,7 +20,8 @@ IF(WIN32)
|
|||
ADD_DEFINITIONS(-DLEARNING_DLL)
|
||||
ENDIF(WIN32)
|
||||
|
||||
ADD_LIBRARY(learning SHARED ${LEARNING_SOURCES})
|
||||
# Note: Other sources and headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(learning SHARED ${LEARNING_SOURCES} ${LEARNING_HEADERS} ${LEARNING_OTHER_SOURCES})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(learning PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
INCLUDE(../../../cmake/macros.cmake)
|
||||
|
||||
SD_INSTALL_FILES(INCLUDE tmath FILES constants.h linalg_t.h straight2_t.h v2_t.h v3_t.h v4_t.h
|
||||
point3d.h SGCMath.h SGGeoc.h SGGeod.h sg_geodesy.h SGGeodesy.h
|
||||
SGLimits.h SGMath.h SGMathFwd.h SGMatrix.h SGMisc.h
|
||||
SGQuat.h sg_random.h sg_types.h SGVec3.h SGVec4.h vector.h)
|
||||
SET(_SOURCES constants.h linalg_t.h straight2_t.h v2_t.h v3_t.h v4_t.h
|
||||
point3d.h SGCMath.h SGGeoc.h SGGeod.h sg_geodesy.h SGGeodesy.h
|
||||
SGLimits.h SGMath.h SGMathFwd.h SGMatrix.h SGMisc.h
|
||||
SGQuat.h sg_random.h sg_types.h SGVec3.h SGVec4.h vector.h)
|
||||
|
||||
SD_INSTALL_FILES(INCLUDE tmath FILES ${_SOURCES})
|
||||
|
||||
# Fictive = no-output target, for having source files available in IDEs.
|
||||
ADD_CUSTOM_TARGET(math SOURCES ${_SOURCES})
|
||||
|
|
|
@ -18,7 +18,8 @@ IF(WIN32)
|
|||
ADD_DEFINITIONS(-DMETAR_DLL)
|
||||
ENDIF(WIN32)
|
||||
|
||||
ADD_LIBRARY(metar SHARED ${METAR_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(metar SHARED ${METAR_SOURCES} ${METAR_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(metar PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -15,7 +15,8 @@ IF(WIN32)
|
|||
ADD_DEFINITIONS(-DPORTABILITY_DLL)
|
||||
ENDIF(WIN32)
|
||||
|
||||
ADD_LIBRARY(portability SHARED ${PORTABILITY_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(portability SHARED ${PORTABILITY_SOURCES} ${PORTABILITY_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(portability PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -7,13 +7,14 @@ SET(RACEENGINE_SOURCES raceengine.cpp
|
|||
raceinit.cpp racemain.cpp
|
||||
racetrack.cpp raceresults.cpp racesimusimu.cpp
|
||||
racestate.cpp racesituation.cpp racemessage.cpp
|
||||
raceutil.cpp
|
||||
raceengine.h
|
||||
raceutil.cpp)
|
||||
SET(RACEENGINE_HEADERS raceengine.h
|
||||
racecareer.h raceupdate.h racenetwork.h racecars.h
|
||||
raceinit.h
|
||||
racetrack.h raceresults.h racesimusimu.h
|
||||
racestate.h racesituation.h racemessage.h
|
||||
raceutil.h)
|
||||
SET(RACEENGINE_OTHER_SOURCES raceengine.xml raceresults.xsl)
|
||||
|
||||
ADD_INTERFACE_INCLUDEDIR()
|
||||
|
||||
|
@ -38,7 +39,8 @@ IF (COMMAND CMAKE_POLICY)
|
|||
CMAKE_POLICY(SET CMP0003 NEW)
|
||||
ENDIF(COMMAND CMAKE_POLICY)
|
||||
|
||||
ADD_LIBRARY(raceengine SHARED ${RACEENGINE_SOURCES})
|
||||
# Note: Other source files and headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(raceengine SHARED ${RACEENGINE_SOURCES} ${RACEENGINE_HEADERS} ${RACEENGINE_OTHER_SOURCES})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(raceengine PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -7,9 +7,8 @@ ADD_SDLIB_INCLUDEDIR(portability tgf math)
|
|||
ADD_SDL_INCLUDEDIR()
|
||||
ADD_PLIB_INCLUDEDIR()
|
||||
|
||||
SET(ROBOTTOOLS_SOURCES rtteammanager.cpp rttelem.cpp rttimeanalysis.cpp rttrack.cpp rtutil.cpp
|
||||
robottools.h teammanager.h timeanalysis.h)
|
||||
|
||||
SET(ROBOTTOOLS_SOURCES rtteammanager.cpp rttelem.cpp rttimeanalysis.cpp rttrack.cpp rtutil.cpp)
|
||||
SET(ROBOTTOOLS_HEADERS robottools.h teammanager.h timeanalysis.h)
|
||||
|
||||
IF(WIN32)
|
||||
# DLL export stuff under Windows (to avoid .def file)
|
||||
|
@ -26,7 +25,8 @@ IF (COMMAND CMAKE_POLICY)
|
|||
CMAKE_POLICY(SET CMP0003 NEW)
|
||||
ENDIF(COMMAND CMAKE_POLICY)
|
||||
|
||||
ADD_LIBRARY(robottools SHARED ${ROBOTTOOLS_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(robottools SHARED ${ROBOTTOOLS_SOURCES} ${ROBOTTOOLS_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(robottools PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
@ -40,6 +40,6 @@ IF(WIN32)
|
|||
ELSE(WIN32)
|
||||
SD_INSTALL_FILES(LIB lib TARGETS robottools)
|
||||
ENDIF(WIN32)
|
||||
SD_INSTALL_FILES(INCLUDE FILES robottools.h)
|
||||
SD_INSTALL_FILES(INCLUDE FILES teammanager.h)
|
||||
|
||||
SD_INSTALL_FILES(INCLUDE FILES robottools.h teammanager.h)
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ SET(TGF_HEADERS os.h tgf.h tgf.hpp modinfo.h osspec.h)
|
|||
SET(TGF_SOURCES application.cpp eventloop.cpp directory.cpp file.cpp filesetup.cpp
|
||||
formula.cpp hash.cpp module.cpp legacymodule.cpp modinfo.cpp os.cpp
|
||||
params.cpp profiler.cpp schedulespy.cpp tgf.cpp trace.cpp)
|
||||
SET(TGF_OTHER_SOURCES params.dtd)
|
||||
|
||||
IF(WIN32)
|
||||
SET(TGF_HEADERS ${TGF_HEADERS} windowsspec.h)
|
||||
|
@ -31,7 +32,8 @@ IF(WIN32)
|
|||
ADD_DEFINITIONS(-DTGF_DLL)
|
||||
ENDIF(WIN32)
|
||||
|
||||
ADD_LIBRARY(tgf SHARED ${TGF_HEADERS} ${TGF_SOURCES})
|
||||
# Note: Other sources needed for having them available in IDEs.
|
||||
ADD_LIBRARY(tgf SHARED ${TGF_HEADERS} ${TGF_SOURCES} ${TGF_OTHER_SOURCES})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(tgf PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -16,6 +16,7 @@ SET(TGFCLIENT_SOURCES control.cpp glfeatures.cpp guibutton.cpp guifont.cpp
|
|||
guicombobox.cpp guicheckbox.cpp guiprogresbar.cpp
|
||||
guiscreen.cpp guieventloop.cpp guiapplication.cpp
|
||||
glfeatures.h gui.h guiscreen.h guimenu.h tgfclient.h guifont.h )
|
||||
SET(TGFCLIENT_OTHER_SOURCES guimenutest.xml screen.xml)
|
||||
|
||||
#disable developer warning
|
||||
IF (COMMAND CMAKE_POLICY)
|
||||
|
@ -35,7 +36,8 @@ IF(MSVC)
|
|||
"${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /NODEFAULTLIB:libcmt.lib")
|
||||
ENDIF(MSVC)
|
||||
|
||||
ADD_LIBRARY(tgfclient SHARED ${TGFCLIENT_SOURCES})
|
||||
# Note: Other sources needed for having them available in IDEs.
|
||||
ADD_LIBRARY(tgfclient SHARED ${TGFCLIENT_SOURCES} ${TGFCLIENT_OTHER_SOURCES})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(tgfclient PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -8,8 +8,7 @@ ADD_INTERFACE_INCLUDEDIR()
|
|||
ADD_SDLIB_INCLUDEDIR(portability txml math tgf)
|
||||
|
||||
SET(TGFDATA_HEADERS tgfdata.h cars.h tracks.h racemanagers.h race.h drivers.h)
|
||||
SET(TGFDATA_SOURCES tgfdata.cpp cars.cpp tracks.cpp racemanagers.cpp race.cpp drivers.cpp
|
||||
${TGFDATA_HEADERS})
|
||||
SET(TGFDATA_SOURCES tgfdata.cpp cars.cpp tracks.cpp racemanagers.cpp race.cpp drivers.cpp)
|
||||
|
||||
IF(WIN32)
|
||||
# DLL export stuff under Windows (to avoid .def file)
|
||||
|
@ -26,7 +25,8 @@ IF (COMMAND CMAKE_POLICY)
|
|||
CMAKE_POLICY(SET CMP0003 NEW)
|
||||
ENDIF(COMMAND CMAKE_POLICY)
|
||||
|
||||
ADD_LIBRARY(tgfdata SHARED ${TGFDATA_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(tgfdata SHARED ${TGFDATA_SOURCES} ${TGFDATA_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(tgfdata PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -1,24 +1,8 @@
|
|||
INCLUDE(../../../cmake/macros.cmake)
|
||||
|
||||
SET(TXML_SOURCES
|
||||
asciitab.h
|
||||
latin1tab.h
|
||||
xml.h
|
||||
xmlrole.h
|
||||
xmltok_impl.h
|
||||
codepage.h
|
||||
nametab.h
|
||||
xmlparse.c
|
||||
xmltok.c
|
||||
utf8tab.h
|
||||
xmlparse.h
|
||||
xmltok.h
|
||||
filemap.h
|
||||
iasciitab.h
|
||||
xmldef.h
|
||||
xmlrole.c
|
||||
xml.cpp
|
||||
)
|
||||
SET(TXML_HEADERS asciitab.h latin1tab.h xml.h xmlrole.h xmltok_impl.h codepage.h nametab.h
|
||||
utf8tab.h xmlparse.h xmltok.h filemap.h iasciitab.h xmldef.h)
|
||||
SET(TXML_SOURCES xmlparse.c xmltok.c xmlrole.c xml.cpp)
|
||||
|
||||
IF(WIN32)
|
||||
SET(TXML_SOURCES ${TXML_SOURCES} dllmain.c)
|
||||
|
@ -36,7 +20,8 @@ IF (COMMAND CMAKE_POLICY)
|
|||
CMAKE_POLICY(SET CMP0003 NEW)
|
||||
ENDIF(COMMAND CMAKE_POLICY)
|
||||
|
||||
ADD_LIBRARY(txml SHARED ${TXML_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(txml SHARED ${TXML_SOURCES} ${TXML_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(txml PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
INCLUDE(../../../../cmake/macros.cmake)
|
||||
|
||||
SET(GENNMTAB_SOURCES gennmtab.c)
|
||||
SET(GENNMTAB_OTHER_SOURCES gennmtab)
|
||||
|
||||
ADD_EXECUTABLE(gennmtab ${GENNMTAB_SOURCES})
|
||||
# Note: Other sources needed for having them available in IDEs.
|
||||
ADD_EXECUTABLE(gennmtab ${GENNMTAB_SOURCES} ${GENNMTAB_OTHER_SOURCES})
|
||||
|
||||
|
|
|
@ -1,21 +1,38 @@
|
|||
INCLUDE(../../../../cmake/macros.cmake)
|
||||
|
||||
SET(SSGGRAPH_SOURCES grMoonpos.h grMoonpos.cpp
|
||||
grMoon.cpp grSun.cpp grCloudLayer.cpp grSky.cpp grSky.h
|
||||
grSkyDome.cpp grSphere.cpp grSphere.h grStars.cpp
|
||||
grboard.cpp grboard.h grcam.cpp grcam.h grcar.cpp grcar.h
|
||||
grcarlight.cpp grcarlight.h grmain.cpp grmain.h
|
||||
grsimplestate.cpp grsimplestate.h
|
||||
grmultitexstate.cpp grmultitexstate.h
|
||||
grloadac.cpp grloadac.h grssgext.h
|
||||
grscene.cpp grscene.h grbackground.cpp grbackground.h
|
||||
grscreen.cpp grscreen.h
|
||||
grshadow.cpp grshadow.h grskidmarks.cpp grskidmarks.h
|
||||
grsmoke.cpp grsmoke.h grtexture.cpp grtexture.h loadsgi.h
|
||||
grtracklight.cpp grtracklight.h
|
||||
grtrackmap.cpp grtrackmap.h grutil.cpp grutil.h
|
||||
grvtxtable.cpp grvtxtable.h grrain.cpp grrain.h
|
||||
ssggraph.cpp ssggraph.h)
|
||||
SET(SSGGRAPH_HEADERS grMoonpos.h grSky.h
|
||||
grSphere.h grStars.cpp
|
||||
grboard.h grcam.h grcar.h
|
||||
grcarlight.h grmain.h
|
||||
grsimplestate.h
|
||||
grmultitexstate.h
|
||||
grloadac.h grssgext.h
|
||||
grscene.h grbackground.h
|
||||
grscreen.h
|
||||
grshadow.h grskidmarks.h
|
||||
grsmoke.h grtexture.h loadsgi.h
|
||||
grtracklight.h
|
||||
grtrackmap.h grutil.h
|
||||
grvtxtable.h grrain.h
|
||||
ssggraph.h)
|
||||
SET(SSGGRAPH_SOURCES grMoonpos.cpp
|
||||
grMoon.cpp grSun.cpp grCloudLayer.cpp grSky.cpp
|
||||
grSkyDome.cpp grSphere.cpp grStars.cpp
|
||||
grboard.cpp grcam.cpp grcar.cpp
|
||||
grcarlight.cpp grmain.cpp
|
||||
grsimplestate.cpp
|
||||
grmultitexstate.cpp
|
||||
grloadac.cpp
|
||||
grscene.cpp grbackground.cpp
|
||||
grscreen.cpp
|
||||
grshadow.cpp grskidmarks.cpp
|
||||
grsmoke.cpp grtexture.cpp
|
||||
grtracklight.cpp
|
||||
grtrackmap.cpp grutil.cpp
|
||||
grvtxtable.cpp grrain.cpp
|
||||
ssggraph.cpp)
|
||||
|
||||
SET(SSGGRAPH_OTHER_SOURCES graph.xml)
|
||||
|
||||
ADD_INTERFACE_INCLUDEDIR()
|
||||
ADD_SDLIB_INCLUDEDIR(portability math tgf tgfclient robottools)
|
||||
|
@ -37,7 +54,8 @@ IF(MSVC)
|
|||
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:msvcrt.lib")
|
||||
ENDIF(MSVC)
|
||||
|
||||
ADD_LIBRARY(ssggraph SHARED ${SSGGRAPH_SOURCES})
|
||||
# Note: Other sources and headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(ssggraph SHARED ${SSGGRAPH_SOURCES} ${SSGGRAPH_HEADERS} ${SSGGRAPH_OTHER_SOURCES})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(ssggraph PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -2,14 +2,16 @@ INCLUDE(../../../cmake/macros.cmake)
|
|||
|
||||
#PROJECT(networking)
|
||||
|
||||
SET(SD_NETWORK_SOURCES network.h network.cpp server.cpp client.cpp robotxml.cpp robotxml.h)
|
||||
SET(SD_NETWORK_SOURCES network.cpp server.cpp client.cpp robotxml.cpp)
|
||||
SET(SD_NETWORK_HEADERS network.h robotxml.h)
|
||||
|
||||
#disable developer warning
|
||||
if (COMMAND cmake_policy)
|
||||
cmake_policy(SET CMP0003 NEW)
|
||||
endif(COMMAND cmake_policy)
|
||||
|
||||
ADD_LIBRARY(networking SHARED ${SD_NETWORK_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(networking SHARED ${SD_NETWORK_SOURCES} ${SD_NETWORK_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(networking PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -8,30 +8,6 @@ INCLUDE(../../../../cmake/macros.cmake)
|
|||
|
||||
ADD_SDLIB_INCLUDEDIR(portability)
|
||||
|
||||
# TODO : See if really needed under Linux (not already done by ADD_SUBDIRECTORY ?).
|
||||
IF(FALSE AND NOT OPTION_3RDPARTY_SOLID)
|
||||
|
||||
# Bundled SOLID 2 sources (soon replaced by 3rdPaty Free Solid 2)
|
||||
SET(SOLID_SOURCES SOLID-2.0/src/Transform.cpp SOLID-2.0/src/Convex.cpp
|
||||
SOLID-2.0/src/Box.cpp SOLID-2.0/src/Cone.cpp SOLID-2.0/src/Cylinder.cpp
|
||||
SOLID-2.0/src/Sphere.cpp SOLID-2.0/src/Simplex.cpp
|
||||
SOLID-2.0/src/Polygon.cpp SOLID-2.0/src/Polyhedron.cpp
|
||||
SOLID-2.0/src/Complex.cpp SOLID-2.0/src/BBoxTree.cpp
|
||||
SOLID-2.0/src/Endpoint.cpp SOLID-2.0/src/Object.cpp
|
||||
SOLID-2.0/src/Response.cpp SOLID-2.0/src/RespTable.cpp
|
||||
SOLID-2.0/src/C-api.cpp)
|
||||
|
||||
# BEFORE in order to prevent Windows 3rdParty/include/SOLID from taking the flag.
|
||||
INCLUDE_DIRECTORIES(BEFORE SOLID-2.0/include)
|
||||
|
||||
IF(UNIX)
|
||||
ADD_LIBRARY(SOLID-2.0/src/libsolid ${SOLID_SOURCES})
|
||||
SET_TARGET_PROPERTIES(SOLID-2.0/src/libsolid PROPERTIES PREFIX ""
|
||||
COMPILE_FLAGS -fPIC)
|
||||
ENDIF(UNIX)
|
||||
|
||||
ENDIF(FALSE AND NOT OPTION_3RDPARTY_SOLID)
|
||||
|
||||
IF(WIN32)
|
||||
# DLL export stuff under Windows (to avoid .def file)
|
||||
ADD_DEFINITIONS(-DSIMUV21_DLL)
|
||||
|
@ -45,9 +21,10 @@ ENDIF(MSVC)
|
|||
SET(SIMU_SOURCES aero.cpp axle.cpp brake.cpp car.cpp categories.cpp
|
||||
collide.cpp differential.cpp engine.cpp simu.cpp
|
||||
steer.cpp susp.cpp transmission.cpp wheel.cpp
|
||||
aero.h axle.h brake.h carstruct.h differential.h engine.h
|
||||
simuv21.cpp)
|
||||
SET(SIMU_HEADERS aero.h axle.h brake.h carstruct.h differential.h engine.h
|
||||
sim.h steer.h susp.h transmission.h wheel.h
|
||||
simuv21.cpp simuv21.h)
|
||||
simuv21.h)
|
||||
|
||||
IF(NOT OPTION_3RDPARTY_SOLID)
|
||||
# BEFORE in order to prevent Windows 3rdParty/include/SOLID from taking the flag.
|
||||
|
@ -60,7 +37,8 @@ ADD_PLIB_INCLUDEDIR()
|
|||
ADD_INTERFACE_INCLUDEDIR()
|
||||
ADD_SDLIB_INCLUDEDIR(math tgf robottools)
|
||||
|
||||
ADD_LIBRARY(simuv2.1 SHARED ${SIMU_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(simuv2.1 SHARED ${SIMU_SOURCES} ${SIMU_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(simuv2.1 PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -3,9 +3,10 @@ INCLUDE("../../../../cmake/macros.cmake")
|
|||
SET(_SOURCES aero.cpp axle.cpp brake.cpp car.cpp categories.cpp
|
||||
collide.cpp differential.cpp engine.cpp simu.cpp
|
||||
steer.cpp susp.cpp transmission.cpp wheel.cpp
|
||||
aero.h axle.h brake.h carstruct.h differential.h engine.h
|
||||
simuv20.cpp)
|
||||
SET(_HEADERS aero.h axle.h brake.h carstruct.h differential.h engine.h
|
||||
sim.h steer.h susp.h transmission.h wheel.h
|
||||
simuv20.cpp simuv20.h)
|
||||
simuv20.h)
|
||||
|
||||
|
||||
IF(NOT OPTION_3RDPARTY_SOLID)
|
||||
|
@ -29,7 +30,8 @@ IF(MSVC)
|
|||
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:msvcrt.lib")
|
||||
ENDIF(MSVC)
|
||||
|
||||
ADD_LIBRARY(simuv2 SHARED ${_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(simuv2 SHARED ${_SOURCES} ${_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(simuv2 PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -4,9 +4,11 @@ SET(_SOURCES SimulationOptions.cpp aero.cpp axle.cpp brake.cpp
|
|||
car.cpp categories.cpp collide.cpp differential.cpp
|
||||
engine.cpp simu.cpp steer.cpp susp.cpp
|
||||
transmission.cpp wheel.cpp
|
||||
aero.h axle.h brake.h carstruct.h differential.h engine.h
|
||||
simuv30.cpp)
|
||||
SET(_HEADERS aero.h axle.h brake.h carstruct.h differential.h engine.h
|
||||
Options.h sim.h steer.h susp.h transmission.h wheel.h
|
||||
simuv30.cpp simuv30.h)
|
||||
simuv30.h)
|
||||
SET(_OTHER_SOURCES ChangeLog)
|
||||
|
||||
IF(NOT OPTION_3RDPARTY_SOLID)
|
||||
# BEFORE in order to prevent Windows 3rdParty/include/SOLID from taking the flag.
|
||||
|
@ -29,7 +31,8 @@ IF(MSVC)
|
|||
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:msvcrt.lib")
|
||||
ENDIF(MSVC)
|
||||
|
||||
ADD_LIBRARY(simuv3 SHARED ${_SOURCES})
|
||||
# Note: Headers and other sources needed for having them available in IDEs.
|
||||
ADD_LIBRARY(simuv3 SHARED ${_SOURCES} ${_HEADERS} ${_OTHER_SOURCES})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(simuv3 PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -1,12 +1,20 @@
|
|||
INCLUDE(../../../../cmake/macros.cmake)
|
||||
|
||||
SET(SNDDEFAULT_SOURCES snddefault.cpp snddefault.h
|
||||
CarSoundData.cpp CarSoundData.h
|
||||
Sound.cpp Sound.h PlibSound.cpp PlibSound.h OpenalSound.cpp OpenalSound.h
|
||||
SoundInterface.cpp SoundInterface.h
|
||||
PlibSoundInterface.cpp PlibSoundInterface.h
|
||||
OpenalSoundInterface.cpp OpenalSoundInterface.h
|
||||
grsound.cpp grsound.h)
|
||||
SET(SNDDEFAULT_SOURCES snddefault.cpp
|
||||
CarSoundData.cpp
|
||||
Sound.cpp PlibSound.cpp OpenalSound.cpp
|
||||
SoundInterface.cpp
|
||||
PlibSoundInterface.cpp
|
||||
OpenalSoundInterface.cpp
|
||||
grsound.cpp)
|
||||
SET(SNDDEFAULT_HEADERS snddefault.h
|
||||
CarSoundData.h
|
||||
Sound.h PlibSound.h OpenalSound.h
|
||||
SoundInterface.h
|
||||
PlibSoundInterface.h
|
||||
OpenalSoundInterface.h
|
||||
grsound.h)
|
||||
SET(SNDDEFAULT_OTHER_SOURCES sound.xml)
|
||||
|
||||
ADD_INTERFACE_INCLUDEDIR()
|
||||
ADD_SDLIB_INCLUDEDIR(portability math tgf tgfclient robottools)
|
||||
|
@ -28,7 +36,8 @@ IF(MSVC)
|
|||
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:msvcrt.lib")
|
||||
ENDIF(MSVC)
|
||||
|
||||
ADD_LIBRARY(snddefault SHARED ${SNDDEFAULT_SOURCES})
|
||||
# Note: Headers and other source files needed for having them available in IDEs.
|
||||
ADD_LIBRARY(snddefault SHARED ${SNDDEFAULT_SOURCES} ${SNDDEFAULT_HEADERS} ${SNDDEFAULT_OTHER_SOURCES})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(snddefault PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
INCLUDE(../../../cmake/macros.cmake)
|
||||
|
||||
SET(TELEMETRY_SOURCES telemetryitf.cpp telemetry.cpp)
|
||||
SET(TELEMETRY_HEADERS tlm.h)
|
||||
SET(TELEMETRY_OTHER_SOURCES telemetry.sh)
|
||||
|
||||
ADD_INTERFACE_INCLUDEDIR()
|
||||
ADD_SDLIB_INCLUDEDIR(tgf portability)
|
||||
|
||||
ADD_LIBRARY(telemetry SHARED ${TELEMETRY_SOURCES})
|
||||
# Note: Headers and other source files needed for having them available in IDEs.
|
||||
ADD_LIBRARY(telemetry SHARED ${TELEMETRY_SOURCES} ${TELEMETRY_HEADERS} ${TELEMETRY_OTHER_SOURCES})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(telemetry PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
INCLUDE(../../../cmake/macros.cmake)
|
||||
|
||||
SET(TRACK_SOURCES track.cpp track3.cpp track4.cpp trackitf.cpp trackutil.cpp
|
||||
trackitf.h trackinc.h)
|
||||
SET(TRACK_SOURCES track.cpp track3.cpp track4.cpp trackitf.cpp trackutil.cpp)
|
||||
SET(TRACK_HEADERS trackitf.h trackinc.h)
|
||||
|
||||
ADD_INTERFACE_INCLUDEDIR()
|
||||
ADD_PLIB_INCLUDEDIR()
|
||||
|
@ -17,7 +17,8 @@ IF(MSVC)
|
|||
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:msvcrt.lib")
|
||||
ENDIF(MSVC)
|
||||
|
||||
ADD_LIBRARY(track SHARED ${TRACK_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(track SHARED ${TRACK_SOURCES} ${TRACK_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(track PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -2,48 +2,52 @@ INCLUDE(../../../../cmake/macros.cmake)
|
|||
|
||||
SET(MS mainscreens)
|
||||
SET(MAINSCREENS_SOURCES ${MS}/splash.cpp ${MS}/mainmenu.cpp
|
||||
${MS}/optionsmenu.cpp ${MS}/creditsmenu.cpp ${MS}/exitmenu.cpp
|
||||
${MS}/splash.h ${MS}/mainmenu.h
|
||||
${MS}/optionsmenu.cpp ${MS}/creditsmenu.cpp ${MS}/exitmenu.cpp)
|
||||
SET(MAINSCREENS_HEADERS ${MS}/splash.h ${MS}/mainmenu.h
|
||||
${MS}/optionsmenu.h ${MS}/creditsmenu.h ${MS}/exitmenu.h)
|
||||
|
||||
IF(MSVC)
|
||||
# errno.cpp should only be included with MSVC
|
||||
# (it fails to compile when added with GCC)
|
||||
SET(MAINSCREENS_SOURCES ${MAINSCREENS_SOURCES} ${MS}/errno.cpp)
|
||||
# errno.cpp should only be included with MSVC
|
||||
# (it fails to compile when added with GCC)
|
||||
SET(MAINSCREENS_SOURCES ${MAINSCREENS_SOURCES} ${MS}/errno.cpp)
|
||||
ENDIF(MSVC)
|
||||
|
||||
SET(CS confscreens)
|
||||
SET(CONFSCREENS_SOURCES ${CS}/playerconfig.cpp ${CS}/controlconfig.cpp
|
||||
${CS}/joystickconfig.cpp ${CS}/mouseconfig.cpp
|
||||
${CS}/joy2butconfig.cpp
|
||||
${CS}/joy2butconfig.cpp
|
||||
${CS}/displayconfig.cpp ${CS}/graphconfig.cpp ${CS}/openglconfig.cpp
|
||||
${CS}/monitorconfig.cpp ${CS}/advancedgraphconfig.cpp
|
||||
${CS}/monitorconfig.cpp ${CS}/advancedgraphconfig.cpp
|
||||
${CS}/simuconfig.cpp ${CS}/soundconfig.cpp ${CS}/aiconfig.cpp
|
||||
${CS}/carsettingsmenu.cpp ${CS}/hostsettingsmenu.cpp
|
||||
${CS}/confscreens.h ${CS}/advancedgraphconfig.h
|
||||
${CS}/carsettingsmenu.cpp ${CS}/hostsettingsmenu.cpp)
|
||||
SET(CONFSCREENS_HEADERS ${CS}/confscreens.h ${CS}/advancedgraphconfig.h
|
||||
${CS}/playerconfig.h ${CS}/controlconfig.h
|
||||
${CS}/joystickconfig.h ${CS}/mouseconfig.h
|
||||
${CS}/joy2butconfig.h ${CS}/
|
||||
${CS}/joystickconfig.h ${CS}/mouseconfig.h
|
||||
${CS}/joy2butconfig.h ${CS}/
|
||||
${CS}/displayconfig.h ${CS}/graphconfig.h ${CS}/openglconfig.h
|
||||
${CS}/simuconfig.h ${CS}/soundconfig.h ${CS}/aiconfig.h
|
||||
${CS}/carsettingsmenu.h ${CS}/hostsettingsmenu.h)
|
||||
|
||||
SET(RS racescreens)
|
||||
SET(RACESCREENS_SOURCES ${RS}/raceselectmenu.cpp
|
||||
#${RS}/raceweekendmenu.cpp
|
||||
#${RS}/raceweekendmenu.cpp
|
||||
${RS}/racemanmenu.cpp ${RS}/fileselect.cpp ${RS}/networkingmenu.cpp
|
||||
${RS}/raceconfigstate.cpp
|
||||
${RS}/trackselect.cpp ${RS}/driverselect.cpp ${RS}/garagemenu.cpp
|
||||
${RS}/raceparamsmenu.cpp
|
||||
${RS}/raceloadingmenu.cpp ${RS}/racerunningmenus.cpp
|
||||
${RS}/raceloadingmenu.cpp ${RS}/racerunningmenus.cpp
|
||||
${RS}/racestopmenu.cpp ${RS}/racestartmenu.cpp ${RS}/racepitmenu.cpp
|
||||
${RS}/raceresultsmenus.cpp ${RS}/racenexteventmenu.cpp
|
||||
${RS}/racescreens.h ${RS}/garagemenu.h) #${RS}/raceweekendscreens.h)
|
||||
${RS}/raceresultsmenus.cpp ${RS}/racenexteventmenu.cpp)
|
||||
SET(RACESCREENS_HEADERS ${RS}/racescreens.h ${RS}/garagemenu.h) #${RS}/raceweekendscreens.h)
|
||||
|
||||
SET(LEGACYMENU_SOURCES ${MAINSCREENS_SOURCES}
|
||||
${CONFSCREENS_SOURCES}
|
||||
${RACESCREENS_SOURCES}
|
||||
legacymenu.cpp legacymenu.h)
|
||||
legacymenu.cpp)
|
||||
SET(LEGACYMENU_HEADERS ${MAINSCREENS_HEADERS}
|
||||
${CONFSCREENS_HEADERS}
|
||||
${RACESCREENS_HEADERS}
|
||||
legacymenu.h)
|
||||
|
||||
INCLUDE_DIRECTORIES(. ${MS} ${CS} ${RS})
|
||||
ADD_INTERFACE_INCLUDEDIR()
|
||||
|
@ -67,7 +71,8 @@ IF(COMMAND CMAKE_POLICY)
|
|||
CMAKE_POLICY(SET CMP0003 NEW)
|
||||
ENDIF(COMMAND CMAKE_POLICY)
|
||||
|
||||
ADD_LIBRARY(legacymenu SHARED ${LEGACYMENU_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(legacymenu SHARED ${LEGACYMENU_SOURCES} ${LEGACYMENU_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(legacymenu PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
@ -76,11 +81,6 @@ IF(UNIX OR MINGW)
|
|||
SET_TARGET_PROPERTIES(legacymenu PROPERTIES PREFIX "")
|
||||
ENDIF(UNIX OR MINGW)
|
||||
|
||||
#IF(WIN32)
|
||||
# # Joystick library
|
||||
# TARGET_LINK_LIBRARIES(legacymenu winmm)
|
||||
#ENDIF(WIN32)
|
||||
|
||||
ADD_SDLIB_LIBRARY(legacymenu portability tgf tgfclient tgfdata networking)
|
||||
|
||||
SD_INSTALL_FILES(LIB modules/userinterface TARGETS legacymenu)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
INCLUDE(../../../../cmake/macros.cmake)
|
||||
|
||||
SET(_SOURCES textonly.cpp textonly.h)
|
||||
SET(_SOURCES textonly.cpp)
|
||||
SET(_HEADERS textonly.h)
|
||||
|
||||
#INCLUDE_DIRECTORIES(.)
|
||||
ADD_INTERFACE_INCLUDEDIR()
|
||||
|
@ -24,7 +25,8 @@ IF(COMMAND CMAKE_POLICY)
|
|||
CMAKE_POLICY(SET CMP0003 NEW)
|
||||
ENDIF(COMMAND CMAKE_POLICY)
|
||||
|
||||
ADD_LIBRARY(textonly SHARED ${_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_LIBRARY(textonly SHARED ${_SOURCES} ${_HEADERS})
|
||||
|
||||
# Might not work with GCC 4.5 or + (non-robot modules crash at 1st reload = after 1 dlclose)
|
||||
#SET_TARGET_PROPERTIES(textonly PROPERTIES VERSION ${VERSION} SOVERSION 0.0.0)
|
||||
|
|
|
@ -1,23 +1,28 @@
|
|||
INCLUDE(../../cmake/macros.cmake)
|
||||
|
||||
SD_INSTALL_FILES(DATA config/raceman USER config/raceman
|
||||
FILES practice.xml quickrace.xml
|
||||
singleevent-36gp.xml
|
||||
singleevent-challenge.xml singleevent-endurance.xml
|
||||
singleevent-ls-gt1.xml singleevent-mp5.xml
|
||||
championship.xml championship-supercars.xml championship-trb1.xml
|
||||
championship-36gp.xml championship-ls-gt1.xml championship-mp5.xml
|
||||
career.xml
|
||||
career_supercars.xmls career_ls1.xmls)
|
||||
|
||||
SD_INSTALL_FILES(DATA config/raceman/extra USER config/raceman/extra
|
||||
FILES extra/skill.xml)
|
||||
SET(RACEMAN_FILES practice.xml quickrace.xml
|
||||
singleevent-36gp.xml
|
||||
singleevent-challenge.xml singleevent-endurance.xml
|
||||
singleevent-ls-gt1.xml singleevent-mp5.xml
|
||||
championship.xml championship-supercars.xml championship-trb1.xml
|
||||
championship-36gp.xml championship-ls-gt1.xml championship-mp5.xml
|
||||
career.xml
|
||||
career_supercars.xmls career_ls1.xmls)
|
||||
|
||||
# Work-in-progress / unofficial race modes.
|
||||
IF(NOT OPTION_OFFICIAL_ONLY)
|
||||
|
||||
SD_INSTALL_FILES(DATA config/raceman USER config/raceman
|
||||
FILES networkrace.xml
|
||||
championship-mpa1.xml)
|
||||
SET(RACEMAN_FILES ${RACEMAN_FILES} networkrace.xml championship-mpa1.xml)
|
||||
|
||||
ENDIF()
|
||||
|
||||
SD_INSTALL_FILES(DATA config/raceman USER config/raceman FILES ${RACEMAN_FILES})
|
||||
|
||||
SET(EXTRA_FILES extra/skill.xml)
|
||||
|
||||
SD_INSTALL_FILES(DATA config/raceman/extra USER config/raceman/extra
|
||||
FILES ${EXTRA_FILES})
|
||||
|
||||
# Fictive = no-output target, for having source files available in IDEs.
|
||||
ADD_CUSTOM_TARGET(raceman SOURCES ${RACEMAN_FILES} ${EXTRA_FILES})
|
||||
|
||||
|
|
|
@ -5,10 +5,12 @@ PROJECT(accc)
|
|||
SET(_TARGET_NAME ${SD_TOOLS_EXECPREFIX}accc)
|
||||
|
||||
SET(ACCC_SOURCES ac3dgroup.cpp ac3dload.cpp mainaccc.cpp)
|
||||
SET(ACCC_HEADERS accc.h)
|
||||
|
||||
ADD_SDLIB_INCLUDEDIR(portability)
|
||||
|
||||
ADD_EXECUTABLE(${_TARGET_NAME} ${ACCC_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_EXECUTABLE(${_TARGET_NAME} ${ACCC_SOURCES} ${ACCC_HEADERS})
|
||||
|
||||
ADD_SDLIB_LIBRARY(${_TARGET_NAME} portability)
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ PROJECT(menuview)
|
|||
SET(_TARGET_NAME ${SD_TOOLS_EXECPREFIX}menuview)
|
||||
|
||||
SET(_SOURCES main.cpp previewmenu.cpp)
|
||||
SET(_HEADERS previewmenu.h)
|
||||
|
||||
ADD_INTERFACE_INCLUDEDIR()
|
||||
ADD_SDLIB_INCLUDEDIR(robottools tgf tgfclient math portability)
|
||||
|
@ -16,7 +17,8 @@ IF(COMMAND CMAKE_POLICY)
|
|||
CMAKE_POLICY(SET CMP0003 NEW)
|
||||
ENDIF(COMMAND CMAKE_POLICY)
|
||||
|
||||
ADD_EXECUTABLE(${_TARGET_NAME} ${_SOURCES})
|
||||
# Note: Headers needed for having them available in IDEs.
|
||||
ADD_EXECUTABLE(${_TARGET_NAME} ${_SOURCES} ${_HEADERS})
|
||||
|
||||
ADD_SDLIB_LIBRARY(${_TARGET_NAME} portability robottools tgf tgfclient)
|
||||
|
||||
|
|
|
@ -5,8 +5,9 @@ PROJECT(trackgen)
|
|||
SET(_TARGET_NAME ${SD_TOOLS_EXECPREFIX}trackgen)
|
||||
|
||||
SET(_SOURCES ac3d.cpp easymesh.cpp elevation.cpp main.cpp
|
||||
objects.cpp relief.cpp track.cpp util.cpp
|
||||
ac3d.h easymesh.h elevation.h objects.h relief.h trackgen.h util.h)
|
||||
objects.cpp relief.cpp track.cpp util.cpp)
|
||||
SET(_HEADERS ac3d.h easymesh.h elevation.h objects.h relief.h trackgen.h util.h)
|
||||
SET(_OTHER_SOURCES trackgen.xml)
|
||||
|
||||
ADD_INTERFACE_INCLUDEDIR()
|
||||
ADD_SDLIB_INCLUDEDIR(robottools tgf tgfclient math portability)
|
||||
|
@ -23,7 +24,8 @@ IF(MSVC)
|
|||
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:msvcrt.lib")
|
||||
ENDIF(MSVC)
|
||||
|
||||
ADD_EXECUTABLE(${_TARGET_NAME} ${_SOURCES})
|
||||
# Note: Headers and other sources needed for having them available in IDEs.
|
||||
ADD_EXECUTABLE(${_TARGET_NAME} ${_SOURCES} ${_SOURCES} ${_OTHER_SOURCES})
|
||||
|
||||
ADD_SDLIB_LIBRARY(${_TARGET_NAME} portability robottools tgf tgfclient)
|
||||
|
||||
|
|
Loading…
Reference in New Issue