From b230f515a89f14d4742b79d4caabf4997a8e614a Mon Sep 17 00:00:00 2001 From: tobigun Date: Sat, 9 May 2009 14:41:04 +0000 Subject: - 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 --- cmake/src/CMakeLists.txt | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) (limited to 'cmake/src/CMakeLists.txt') 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 -- cgit v1.2.3