diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-05-09 14:41:04 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-05-09 14:41:04 +0000 |
commit | b230f515a89f14d4742b79d4caabf4997a8e614a (patch) | |
tree | e678e2647ea504ede0c464daf9e6457e83133f3c /cmake/src/CMakeLists.txt | |
parent | f6681ab67054faacfb131f4ee712fc448a012e9e (diff) | |
download | usdx-b230f515a89f14d4742b79d4caabf4997a8e614a.tar.gz usdx-b230f515a89f14d4742b79d4caabf4997a8e614a.tar.xz usdx-b230f515a89f14d4742b79d4caabf4997a8e614a.zip |
- options added for projectM and generation of lazarus project files
- ConfigurePasFile.cmake merged with UsePascal.cmake (->pascal_configure_file)
- OUTPUT_NAME, OUTPUT_DIR options for pascal_add_module()
- ultrastardx executable is generated in the game dir of the binary directory
- Id and HeadURL properties added for better identification of CMakeLists.txt in the editor
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1719 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | cmake/src/CMakeLists.txt | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/cmake/src/CMakeLists.txt b/cmake/src/CMakeLists.txt index 5e8ee7f9..1e920936 100644 --- a/cmake/src/CMakeLists.txt +++ b/cmake/src/CMakeLists.txt @@ -1,23 +1,28 @@ +# $URL$ +# $Id$ + add_subdirectory(lib) ## # CONFIGURATION ## -include(ConfigurePasFile) -configure_pas_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in - ${CMAKE_CURRENT_BINARY_DIR}/config-${FPC_PLATFORM}.inc) +pascal_configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in + ${CMAKE_CURRENT_BINARY_DIR}/config-${FPC_PLATFORM}.inc) -file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/paths.inc - "INSTALL_DATADIR = '/usr/local/share/ultrastardx';") +file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/paths.inc + "INSTALL_DATADIR = '${CMAKE_INSTALL_PREFIX}/share/ultrastardx';") ## # BUILD ## #if(DELPHI) -# PACKAGES ctypes bass midi +# PACKAGES ctypes #endif(DELPHI) +#if(WIN32) +# PACKAGES bass midi +#endif(WIN32) set(depends) if(libprojectM_USE_CWRAPPER) @@ -25,24 +30,29 @@ if(libprojectM_USE_CWRAPPER) endif(libprojectM_USE_CWRAPPER) pascal_add_module(ultrastardx ultrastardx.dpr -# FLAGS -vut - UNITS - base/*.pas - menu/*.pas - screens/*.pas + #FLAGS -vut + OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/../game + UNITS + base/*.pas + #macosx/*.pas media/*.pas + menu/*.pas + screens/*.pas lib/other/*.pas ../plugins/SDK/*.pas - INCLUDES + INCLUDES ${CMAKE_CURRENT_BINARY_DIR}/config-${FPC_PLATFORM}.inc ${CMAKE_CURRENT_BINARY_DIR}/paths.inc - PACKAGES + PACKAGES collections ffmpeg fft freetype - sdl sdl_image opengl - portaudio portmixer + sdl + sdl_image + opengl + portaudio + portmixer projectm png samplerate |