[Orxonox-commit 3443] r8130 - code/branches/kicklib/src
rgrieder at orxonox.net
rgrieder at orxonox.net
Sat Mar 26 21:49:51 CET 2011
Author: rgrieder
Date: 2011-03-26 21:49:51 +0100 (Sat, 26 Mar 2011)
New Revision: 8130
Modified:
code/branches/kicklib/src/CMakeLists.txt
Log:
Only compile OrxonoxMac.mm on Mac.
Modified: code/branches/kicklib/src/CMakeLists.txt
===================================================================
--- code/branches/kicklib/src/CMakeLists.txt 2011-03-26 20:41:28 UTC (rev 8129)
+++ code/branches/kicklib/src/CMakeLists.txt 2011-03-26 20:49:51 UTC (rev 8130)
@@ -137,14 +137,20 @@
SET(ORXONOX_WIN32 WIN32)
ENDIF()
+SET(ORXONOX_MAIN_FILES Orxonox.cc)
+
+# Add special source file for OS X
+IF(APPLE)
+ LIST(APPEND ORXONOX_MAIN_FILES OrxonoxMac.mm)
+ENDIF()
+
ORXONOX_ADD_EXECUTABLE(orxonox-main
# When defined as WIN32 this removes the console window on Windows
${ORXONOX_WIN32}
LINK_LIBRARIES
orxonox
SOURCE_FILES
- Orxonox.cc
- OrxonoxMac.mm
+ ${ORXONOX_MAIN_FILES}
OUTPUT_NAME orxonox
)
# Main executable should depend on all modules
More information about the Orxonox-commit
mailing list