Alpine3D

Alpine3D Svn Source Tree

Root/trunk/tests/CMakeLists.txt

1#############################
2## Global Configuration ##
3#############################
4
5# set Memory check command
6set(CTEST_MEMORYCHECK_COMMAND valgrind)
7
8#get the proper Snowpack library
9IF(BUILD_SHARED_LIBS)
10SET(LIBALPINE3D_LIBRARY ${PROJECT_NAME})
11ELSE(BUILD_SHARED_LIBS)
12IF(BUILD_STATIC_LIBS)
13SET(LIBALPINE3D_LIBRARY "${PROJECT_NAME}_STATIC")
14ELSE(BUILD_STATIC_LIBS)
15MESSAGE(SEND_ERROR "Not building Snowpack, the test won't be able to build")
16ENDIF(BUILD_STATIC_LIBS)
17ENDIF(BUILD_SHARED_LIBS)
18INCLUDE_DIRECTORIES(../)
19
20FIND_PACKAGE(MeteoIO REQUIRED)
21INCLUDE_DIRECTORIES(${METEOIO_INCLUDE_DIR})
22FIND_PACKAGE(Libsnowpack REQUIRED)
23INCLUDE_DIRECTORIES(${LIBSNOWPACK_INCLUDE_DIR})
24
25#in order to link a new executable:
26#TARGET_LINK_LIBRARIES(${BINARY} ${LIBALPINE3D_LIBRARY} ${LIBSNOWPACK_LIBRARY} ${METEOIO_LIBRARY} ${EXTRA_LINKS})
27
28###################
29## Add Tests ##
30###################
31ADD_SUBDIRECTORY(simple)
32ADD_SUBDIRECTORY(basics)

Archive Download this file

Revision: HEAD