-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
53 lines (43 loc) · 1.36 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.10)
PROJECT (stltostp)
SET(STLTOSTP_SRC
StepKernel.cpp
main.cpp)
ENABLE_TESTING()
set (CMAKE_CXX_STANDARD 11)
ADD_EXECUTABLE (stltostp ${STLTOSTP_SRC})
ADD_TEST(
NAME cat_dish
COMMAND stltostp cat_dish.stl cat_dish.stp tol .0000001
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/test"
)
ADD_TEST(
NAME bucket
COMMAND stltostp bucket.stl bucket.stp
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/test"
)
ADD_TEST(
NAME cat_dish_bin
COMMAND stltostp cat_dish_bin.stl cat_dish_bin.stp
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/test"
)
ADD_TEST(
NAME single_tri
COMMAND stltostp single_tri.stl single_tri.stp
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/test"
)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION "bin/")
if(WIN32)
set(CPACK_GENERATOR WIX)
set(CPACK_PACKAGE_NAME "stltostp")
set(CPACK_PACKAGE_VENDOR "slugdev")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Command line utility to convert stl files to STEP brep files.")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "1")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CMAKE_PROJECT_NAME}/${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
set(CPACK_WIX_UPGRADE_GUID "F9AEABA2-D7AF-4EA6-BF46-B3E165410D17")
include (InstallRequiredSystemLibraries)
include(CPack)
endif(WIN32)