e86006c6ce00253bd595e680774eecab5ba06ccc
[occt.git] / samples / mfc / occtdemo / adm / cmake / Convert / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.6)
2
3 set (PROJECT Convert)
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}/Convert_Presentation.cpp )
12
13 # List of used headers
14 set (USED_HEADERFILES         
15          ${PROJECT_DIR}/Convert_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          FWOSPlugin.lib
40          PTKernel.lib
41          TKBool.lib
42          TKCAF.lib
43          TKCDF.lib
44          TKDraw.lib
45          TKernel.lib
46          TKFeat.lib
47          TKFillet.lib
48          TKGeomAlgo.lib
49          TKHLR.lib
50          TKMath.lib
51          TKOffset.lib
52          TKPCAF.lib
53          TKPrim.lib
54          TKPShape.lib
55          TKService.lib
56          TKTopAlgo.lib
57          TKV3d.lib
58          TKBRep.lib
59          TKG2d.lib
60          TKG3d.lib
61          TKGeomBase.lib
62          TKBO.lib)
63
64 add_executable ( ${PROJECT} WIN32 
65                             ${USED_SRCFILES}
66                             ${COMMON_SRCFILES}
67                             ${USED_HEADERFILES}
68                             ${COMMON_HEADERS}
69                             ${COMMON_RESFILES} )
70
71 target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
72
73 set_target_properties( ${PROJECT} PROPERTIES
74 RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind 
75 ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind 
76 LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind 
77 RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind 
78 ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind 
79 LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )
80