-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (30 loc) · 1010 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
set(CMAKE_CXX_STANDARD 14)
__cc_find(cxbin)
__cc_find(QhullWrapper)
__assert_target(cxbin)
__assert_target(qhullWrapper)
__files_group(${CMAKE_CURRENT_SOURCE_DIR}/cxkernel/ SRCS)
set(QRCS res/cxkernel.qrc res/images.qrc)
set(LIBS)
set(ILIBS ${qtuser} trimesh2 cxbin stringutil qhullWrapper mmesh qcxutil cxcloud)
if(CC_BC_WIN)
list(APPEND LIBS Dbghelp.lib)
elseif(CC_BC_MAC)
# add_compile_options(-x objective-c++)
list(APPEND SRCS ${CMAKE_CURRENT_SOURCE_DIR}/macwindow/macwindow.h ${CMAKE_CURRENT_SOURCE_DIR}/macwindow/macwindow.mm
${CMAKE_CURRENT_SOURCE_DIR}/macwindow/mycppobject.h ${CMAKE_CURRENT_SOURCE_DIR}/macwindow/mycppobject.cpp)
find_library(APP_KIT Appkit Foundation)
endif()
if(CC_BC_MAC)
list(APPEND ILIBS ${APP_KIT})
endif()
set(INCS ${CMAKE_CURRENT_SOURCE_DIR})
set(DEFS CXKERNEL_DLL NOMINMAX)
__add_real_target(cxkernel dll SOURCE ${SRCS}
LIB ${LIBS}
ILIB ${ILIBS}
INC ${INCS}
DEF ${DEFS}
INTERFACE ${INCS}
QTQRC ${QRCS}
)