0025812: Replace dynamic loading mechanism of OCAF persistence with dynamic-link one
[occt.git] / samples / mfc / occtdemo / adm / cmake / Intersections / CMakeLists.txt
CommitLineData
234e52be 1cmake_minimum_required (VERSION 2.6)
2
3set (PROJECT Intersections)
4project (${PROJECT} CXX)
5
6set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
7
8
9# List of used sources
10set (USED_SRCFILES
11 ${PROJECT_DIR}/${PROJECT}_Presentation.cpp )
12
13# List of used headers
14set (USED_HEADERFILES
15 ${PROJECT_DIR}/${PROJECT}_Presentation.h )
16
17
18# include headers
19include_directories( ${PROJECT_DIR} )
20
21# Specify folders in the VS solution
22source_group ( "Source Files" FILES
23 ${USED_SRCFILES} )
24
25source_group ( "Header Files" FILES
26 ${USED_HEADERFILES} )
27
28source_group ( "Common\\Source Files" FILES
29 ${COMMON_SRCFILES} )
30
31source_group ( "Common\\Header Files" FILES
32 ${COMMON_HEADERS} )
33
34source_group ( "Common\\Resource Files" FILES
35 ${COMMON_RESFILES})
36
37# lib to include:
38set ( LINK_LIBRARIES
234e52be 39 TKBool.lib
40 TKCAF.lib
41 TKCDF.lib
42 TKDraw.lib
43 TKernel.lib
44 TKFeat.lib
45 TKFillet.lib
46 TKGeomAlgo.lib
47 TKHLR.lib
48 TKMath.lib
49 TKOffset.lib
50 TKPCAF.lib
51 TKPrim.lib
52 TKPShape.lib
53 TKService.lib
54 TKTopAlgo.lib
55 TKV3d.lib
56 TKBRep.lib
57 TKG2d.lib
58 TKG3d.lib
59 TKGeomBase.lib
60 TKBO.lib)
61
62add_executable ( ${PROJECT} WIN32
63 ${USED_SRCFILES}
64 ${COMMON_SRCFILES}
65 ${USED_HEADERFILES}
66 ${COMMON_HEADERS}
67 ${COMMON_RESFILES} )
68
69target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
70
71set_target_properties( ${PROJECT} PROPERTIES
72RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
73ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
74LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
75RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
76ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
77LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )
78