0025812: Replace dynamic loading mechanism of OCAF persistence with dynamic-link one
[occt.git] / samples / mfc / occtdemo / adm / cmake / Primitives / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.6)
2
3 set (PROJECT Primitives)
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          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
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