-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
49 lines (35 loc) · 1.28 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
#
# Root CMakeLists.txt to build all the HVT tools
#
cmake_minimum_required(VERSION 2.6)
if (WIN32)
cmake_policy(SET CMP0008 NEW)
endif (WIN32)
project(hot)
# run our helper process to grab the compile and link flags from hcustom
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules" )
# execute_process(COMMAND hdk-config.py --notag --cmake=${PROJECT_SOURCE_DIR}/CMakeModules/FindHDK.cmake)
find_package(HDK)
if (HDK_FOUND)
# set(CMAKE_INSTALL_PREFIX ${HDK_HIH_DIR})
# the 3rdparty libraries that I use can usually be found here ...
#set (CMAKE_FIND_ROOT_PATH ${PROJECT_SOURCE_DIR}/../3rdparty)
add_subdirectory(src)
#
# packaging setup
#
INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The Houdini Ocean Toolkit")
SET(CPACK_PACKAGE_VENDOR "[email protected]")
SET(CPACK_PACKAGE_VERSION_MAJOR "1")
SET(CPACK_PACKAGE_VERSION_MINOR "0")
SET(CPACK_PACKAGE_VERSION_PATCH "rc7")
IF(WIN32 AND NOT UNIX)
SET(CPACK_GENERATOR "ZIP")
ELSE(WIN32 AND NOT UNIX)
SET(CPACK_SYSTEM_NAME "h$ENV{HOUDINI_VERSION}")
# SET(CPACK_SYSTEM_NAME "H$ENV{HOUDINI_VERSION}-gcc-$ENV{HOUDINI_BUILD_COMPILER}-$ENV{HOUDINI_BUILD_KERNEL}")
SET(CPACK_GENERATOR "TGZ")
ENDIF(WIN32 AND NOT UNIX)
include(CPack)
endif ( HDK_FOUND )