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