Statistiques
| Révision :

root / AFM / CMakeLists.txt @ 1

Historique | Voir | Annoter | Télécharger (706 octet)

1 1 rmalgat
#cmake_minimum_required(VERSION 2.8)
2 1 rmalgat
3 1 rmalgat
include(${SOFA_CMAKE_DIR}/preProject.cmake)
4 1 rmalgat
5 1 rmalgat
set(HEADER_FILES
6 1 rmalgat
7 1 rmalgat
)
8 1 rmalgat
9 1 rmalgat
set(SOURCE_FILES
10 1 rmalgat
11 1 rmalgat
	AFM.cpp)
12 1 rmalgat
13 1 rmalgat
if(APPLE)
14 1 rmalgat
15 1 rmalgat
    set(RC_FILE "runSOFA.icns")
16 1 rmalgat
17 1 rmalgat
else()
18 1 rmalgat
19 1 rmalgat
    set(RC_FILE "sofa.rc")
20 1 rmalgat
21 1 rmalgat
endif()
22 1 rmalgat
23 1 rmalgat
add_executable(${PROJECT_NAME} ${HEADER_FILES} ${SOURCE_FILES} ${RC_FILES})
24 1 rmalgat
25 1 rmalgat
AddLinkerDependencies(SofaGuiMain SofaComponentMain SofaPython Flexible AFM_plane)
26 1 rmalgat
27 1 rmalgat
ADD_DEFINITIONS(-DNDEBUG )
28 1 rmalgat
ADD_DEFINITIONS(-DBOOST_UBLAS_NDEBUG -O3)
29 1 rmalgat
30 1 rmalgat
31 1 rmalgat
32 1 rmalgat
if(SOFA-LIB_SIMULATION_GRAPH_DAG)
33 1 rmalgat
    AddLinkerDependencies(SofaSimulationGraph)
34 1 rmalgat
endif()
35 1 rmalgat
36 1 rmalgat
if(UNIX)
37 1 rmalgat
38 1 rmalgat
    AddLinkerDependencies("dl")
39 1 rmalgat
40 1 rmalgat
endif()
41 1 rmalgat
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${LINK_LIBRARIES} )
42 1 rmalgat
include(${SOFA_CMAKE_DIR}/postProject.cmake)