Skip to content

Commit 83ff6c3

Browse files
committed
Find 'OctaneGUI' package and link libraries.
This attempts to find the 'OctaneGUI' package through the OctaneGUIConfig.cmake file. 'OctaneGUI_DIR' must be provided to CMake through the CLI.
1 parent 6a340ac commit 83ff6c3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Source/Client/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
set(TARGET CLIENT)
22

3+
find_package(OctaneGUI REQUIRED)
4+
35
add_executable(${TARGET} Main.cpp)
46

57
set_target_properties(
68
${TARGET}
79
PROPERTIES
810
RUNTIME_OUTPUT_NAME Snippet
911
)
12+
13+
target_include_directories(
14+
${TARGET}
15+
PRIVATE ${OctaneGUI_INCLUDE_DIRS}
16+
)
17+
18+
target_link_libraries(
19+
${TARGET}
20+
${OctaneGUI_LIBRARIES}
21+
)
22+
23+
file(COPY ${OctaneGUI_RESOURCES_DIR} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

0 commit comments

Comments
 (0)