# if CMAKE_BUILD_TYPE is specified use it; otherwise set the default # build type to "RelWithDebInfo" ("-O2 -g" with gcc) prior to calling # project() if(DEFINED CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "Choose build type") else(DEFINED CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose build type") endif(DEFINED CMAKE_BUILD_TYPE) include_directories(. ../FastMarching) add_subdirectory(devel/stlmesh) add_subdirectory(devel/lcmtest) file(GLOB HEADERS *.h*) set(ST_API ${ST_API} ${HEADERS}) file(GLOB SRC *.c*) set(ST_SRC ${ST_SRC} ${SRC} ) add_library(stlmesh_shared SHARED ${ST_SRC} ) target_link_libraries(stlmesh_shared fastmarching_shared nutil-dynamic)