Changeset 247

Show
Ignore:
Timestamp:
01/23/09 15:33:11 (16 years ago)
Author:
smidl
Message:

cmake fixes for opensuse

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r235 r247  
    2626ELSE() 
    2727        #This is for UNIX makefile which does only one release at a time. 
    28         SET(CMAKE_BUILD_TYPE Debug) 
     28        SET(CMAKE_BUILD_TYPE Optimized) 
    2929        SET(CMAKE_CXX_FLAGS "-Wall -pipe  -Wno-unknown-pragmas") 
    3030        SET(CMAKE_CXX_FLAGS_RELEASE " -DNDEBUG -O2") 
    3131        SET(CMAKE_CXX_FLAGS_DEBUG "-g") 
     32        SET(CMAKE_CXX_FLAGS "-O2 -Wall -Wno-unknown-pragmas") 
     33        ADD_DEFINITIONS(-DNDEBUG) 
    3234        INCLUDE(CMakeLocal.txt OPTIONAL)         
    3335ENDIF(WIN32) 
  • CMake_modules/FindITPP.cmake

    r211 r247  
    2020  "${ITPP_DIR}\\win32\\lib" 
    2121  /usr/pkgs64/lib 
     22  /usr/lib64 
    2223  NO_DEFAULT_PATH 
    2324) 
  • tests/CMakeLists.txt

    r235 r247  
    44# Make sure the linker can find the Hello library once it is built. 
    55link_directories (${BDM_BINARY_DIR}/bdm) 
     6 
     7# Define macro for testing a file 
     8MACRO(TEST FN) 
     9        add_executable (${FN} ${FN}.cpp) 
     10        target_link_libraries (${FN} debug itpp_debug) 
     11        target_link_libraries (${FN} optimized itpp) 
     12        target_link_libraries (${FN} bdm ${AddLib}) 
     13ENDMACRO(TEST) 
    614 
    715# Add executable called "helloDemo" that is built from the source files 
     
    4048 
    4149IF(${XERCES_FOUND}) 
    42 EXEC(testUI) 
    43 target_link_libraries (testUI ${XERCES_LIBRARIES}) 
     50  EXEC(testUI) 
     51  target_link_libraries (testUI ${XERCES_LIBRARIES}) 
    4452ENDIF(${XERCES_FOUND})