-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
45 lines (35 loc) · 1.22 KB
/
CMakeLists.txt
File metadata and controls
45 lines (35 loc) · 1.22 KB
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
cmake_minimum_required(VERSION 3.29)
project(SimpleBox)
# Set CMake policies
cmake_policy(SET CMP0091 NEW)
# Set compiler options
set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreadedDLL)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Explicitly set Houdini paths
set(HFS "C:/Program Files/Side Effects Software/Houdini 20.5.278")
set(Houdini_PATH ${HFS})
set(Houdini_DIR ${Houdini_PATH}/toolkit/cmake)
# Define custom DSO output directory
set(HOUDINI_DSO_PATH "C:/Users/mansa/OneDrive/Documents/houdini20.5/dso")
# Find Houdini package
find_package(Houdini REQUIRED)
# Add library target
add_library(SimpleBox SHARED SimpleBox.cpp)
# Configure target properties
set_target_properties(SimpleBox PROPERTIES
PREFIX ""
SUFFIX ".dll"
# Set the output directory for the DLL
# RUNTIME_OUTPUT_DIRECTORY ${HOUDINI_DSO_PATH}
#LIBRARY_OUTPUT_DIRECTORY ${HOUDINI_DSO_PATH}
)
# Link against Houdini libraries
target_link_libraries(SimpleBox
Houdini
)
# Add Houdini binary paths to the system PATH during build
set(ENV{PATH} "${HFS}/bin;${HFS}/toolkit/bin;$ENV{PATH}")
# Print some helpful information
message(STATUS "Using Houdini installation: ${HFS}")
message(STATUS "DSO output directory: ${HOUDINI_DSO_PATH}")