CMake version 2.6-patch 0 Mac OSX 10.5 XCode 3.0
Windows XP SP2 Visual Studio 2005 Version 8.0 I create projectfiles for a lib and an exe for visual studio 2005 and xcode. If I now try to debug the exe which is using the lib with xcode 3.0 and change some source from the lib, the debugger starts but doesn't link my lib again. (the linker says "File xxxx more recent than executable timestamp") So I can't see my changes and have to rebuild the complete source again. I searched the web about Xcode and CMake but I could'nt find a lot informations and nothing about a problem like this. I add the CMakeLists.txt and a general cmake script (ash.cmake). Perhaps anyone has an Idea what mistake I make. MfG/Regards Joachim de Vries Anwendungsentwickler
project( CoverEditor )
#minimum required cmake version
cmake_minimum_required(VERSION 2.6)
include($ENV{ASH_OWN_ROOT}/branches/mac/cmake/ash.cmake)
#Source files.. both headers and cpps for coverEditor
Set(SRC_DIR ../../src/ced)
MESSAGE("Searching sources in " ${SRC_DIR})
FILE(GLOB SOURCE ${SRC_DIR}/*.cpp)
FILE(GLOB SOURCE_H ${SRC_DIR}/*.h)
SET(DEF_INC_H ${SRC_DIR}/defInc.h)
FILE(GLOB DEF_INC_CPP ${SRC_DIR}/defInc.cpp)
Set(INCLUDE_DIR ../../include/ced)
MESSAGE("Searching headers in " ${INCLUDE_DIR})
FILE(GLOB HEAD ${INCLUDE_DIR}/*.h)
#Source files.. both headers and cpps for coverStudio
Set(SRC_DIR_CST ../../src/cst)
MESSAGE("Searching sources in " ${SRC_DIR_CST})
FILE(GLOB SOURCE_CST ${SRC_DIR_CST}/*.cpp)
Set(INCLUDE_DIR_CST ../../include/cst)
MESSAGE("Searching headers in " ${INCLUDE_DIR_CST})
FILE(GLOB HEAD_CST ${INCLUDE_DIR_CST}/*.h)
#Additional include directories
include_directories(
../../include
../../../peru/include
../../../miniuni/include
../../../langid/include
../../../chunkFile/include
../../../resFile/include
../../../wxutil/include
../../../ashreg/include
../../../ash_inet/include
../../../tinytemplatematrix/include
../../../discforge_anvil/include
../../../freedb/include
../../../decmpa/include
../../../winunilayer/include
../../../id3tag/include
../../../licenseutil/include
../../../discforge_anvil/include
../../../../../../vendor/branches/mac/wxcode/components/wxthings/include
)
#Additional Library Directories
link_directories(
../../../../../../vendor/branches/mac/wxcode/components/wxthings/lib
../../../../../../vendor/trunk/wxwidgets/src/build/Development
../../../discforge_anvil/lib/vc6
../../../wxutil/lib
../../../ash_inet/lib
../../../peru/lib
../../../ashreg/lib
../../../miniuni/lib
../../../licenseutil/lib
../../../langid/lib
../../lib
../../../resFile/lib
../../../chunkFile/lib
../../../freedb/lib
../../../id3tag/lib
../../../decmpa/lib
../../../discforge_anvil/lib/vc6
)
#preprocessor definitions
add_definitions(
-D_LIB
-DUNICODE
-D_UNICODE
)
# include os specific settings for visual studio or xcode
ash_includeOSSettings()
add_library(CoverEditor STATIC ${SOURCE} ${HEAD} ${DEF_INC_H} ${SOURCE_H})
if (WIN32)
add_executable(CoverStudio WIN32 ${SOURCE_CST} ${HEAD_CST})
endif(WIN32)
if (APPLE)
add_executable(CoverStudio MACOSX_BUNDLE ${SOURCE_CST} ${HEAD_CST})
endif(APPLE)
# general libraries
target_link_libraries(CoverStudio general "wxutil")
target_link_libraries(CoverStudio general "chunkFile")
target_link_libraries(CoverStudio general "resFile")
target_link_libraries(CoverStudio general "peru")
target_link_libraries(CoverStudio general "peru_net")
target_link_libraries(CoverStudio general "miniuni")
target_link_libraries(CoverStudio general "langid")
target_link_libraries(CoverStudio general "freedb")
target_link_libraries(CoverStudio general "decmpa")
target_link_libraries(CoverStudio general "id3tag")
target_link_libraries(CoverStudio general "ashreg")
target_link_libraries(CoverStudio general "licenseutil")
target_link_libraries(CoverStudio general "wxthings")
#win32 libraries
if (WIN32)
# general
target_link_libraries(CoverStudio general "wininet")
target_link_libraries(CoverStudio general "Ws2_32")
target_link_libraries(CoverStudio general "shlwapi")
target_link_libraries(CoverStudio general "Winmm")
target_link_libraries(CoverStudio general "gdiplus")
target_link_libraries(CoverStudio general "comctl32")
target_link_libraries(CoverStudio general "Rpcrt4")
target_link_libraries(CoverStudio general "peru_win32")
target_link_libraries(CoverStudio general "peru_net_win32")
target_link_libraries(CoverStudio general "adav")
target_link_libraries(CoverStudio general "ash_inet")
endif(WIN32)
if (APPLE)
target_link_libraries(CoverStudio general "peru_posix")
endif(APPLE)
# Add wxWidgets LIbraries and includes
ash_includeWxWidgetsSupport(CoverEditor)
TARGET_LINK_LIBRARIES(CoverStudio
general CoverEditor
)
SET(OUTPUT_DIRECTORY_BIN "../../bin")
SET(OUTPUT_DIRECTORY_LIB "../../lib")
SET_TARGET_PROPERTIES(CoverEditor PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY_LIB}
RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY_LIB}
ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY_LIB}
MODULE_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY_LIB}
COMPILE_DEFINITIONS_DEBUG _DEBUG
)
SET_TARGET_PROPERTIES(CoverStudio PROPERTIES
COMPILE_DEFINITIONS_DEBUG _DEBUG
LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY_BIN}
RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY_BIN}
ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY_BIN}
MODULE_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY_BIN}
)
ash_includePrecompiledHeaderSupport(CoverEditor ${DEF_INC_CPP} ${DEF_INC_H}
defInc.h)
ash.cmake
Description: ash.cmake
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
