CMakeLists.txt
changeset 2203 6bd39d75e0dd
parent 2200 8192be6e3aef
child 2219 07f5345ecae7
--- a/CMakeLists.txt	Sun Jun 28 16:44:04 2009 +0000
+++ b/CMakeLists.txt	Sun Jun 28 16:54:51 2009 +0000
@@ -17,11 +17,14 @@
 if(APPLE)
 set(CMAKE_INSTALL_PREFIX "Hedgewars.app/Contents/MacOS/") 
 set(DATA_INSTALL_DIR "../Resources/")
+set (target_dir ".")
 
 if(CMAKE_OSX_ARCHITECTURES MATCHES "i386;ppc7400" OR CMAKE_OSX_ARCHITECTURES MATCHES "ppc7400;i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "i386;ppc" OR CMAKE_OSX_ARCHITECTURES MATCHES "ppc;i386")
 	set(universal_build "1")
 	message("-- Building a Universal Application")
-endif(CMAKE_OSX_ARCHITECTURES MATCHES "i386;ppc7400" OR CMAKE_OSX_ARCHITECTURES MATCHES "ppc7400;i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "i386;ppc" OR CMAKE_OSX_ARCHITECTURES MATCHES "ppc;i386")
+endif()
+else(APPLE)
+set (target_dir "bin")
 endif(APPLE)
 
 if(DEFINED DATA_INSTALL_DIR)
@@ -47,6 +50,7 @@
 add_subdirectory(hedgewars)
 add_subdirectory(share)
 
+
 # CPack vars
 
 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Hedgewars, a turn-based strategy")