Changeset 320

Show
Ignore:
Timestamp:
04/23/09 15:00:26 (15 years ago)
Author:
smidl
Message:

CMake compilation of mexes

Files:
3 added
2 modified

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r319 r320  
    3838        SET(CMAKE_CXX_FLAGS_DEBUG "-g -O0") 
    3939        #ADD_DEFINITIONS(-DNDEBUG) 
    40         INCLUDE(CMakeLocal.txt OPTIONAL)         
     40         
     41        SET(MATLAB_ROOT ~/bin/matlab2008a) 
     42        # MATLAB_ROOT can be setup in Local 
    4143ENDIF(UNIX) 
     44 
     45# Local ettings should be written to file called CMakeLists.local 
     46# Use this option for machine-specific options, such as prallel architectures 
     47INCLUDE(CMakeLists.local OPTIONAL)       
    4248 
    4349FIND_PACKAGE(ITPP REQUIRED) 
    4450FIND_PACKAGE(ACML COMPONENTS) 
    45 #FIND_PACKAGE(XERCES COMPONENTS) 
     51FIND_PACKAGE(Matlab COMPONENTS) 
     52FIND_PROGRAM(MEX_COMPILER mex) 
    4653 
    4754IF(ITPP_FOUND) 
     
    7481        target_link_libraries (${FN} ${ARGN}) ## Additional libraries can be added to a macro 
    7582ENDMACRO(EXEC) 
     83         
    7684 
    77  
    78 # Local ettings should be written to file called CMakeLists.local 
    79 # Use this option for machine-specific options, such as prallel architectures 
    80 INCLUDE(CMakeLists.local OPTIONAL)       
    8185 
    8286# Recurse into the "dbm" and "tests" subdirectories.  This does not actually 
  • bdm/CMakeLists.txt

    r277 r320  
    77SET(BdmUI libconfig/libconfigcpp.cc libconfig/grammar.c libconfig/libconfig.c libconfig/scanner.c uibuilder.cpp uibuilder.h ) 
    88 
    9 #IF(${XERCES_FOUND}) 
     9# Normal BDM library 
    1010add_library (bdm STATIC itpp_ext.cpp itpp_ext.h osutils.cpp osutils.h ${BdmMath} ${BdmStat} ${BdmEstim} ${BdmUI}) 
    11 #set_target_properties(bdm PROPERTIES DEFINE_SYMBOL LIBCONFIG_STATIC) 
    12 #ELSE(${XERCES_FOUND}) 
    13 #add_library (bdm itpp_ext.cpp itpp_ext.h osutils.cpp osutils.h ${BdmMath} ${BdmStat} ${BdmEstim}) 
    14 #ENDIF(${XERCES_FOUND})