You've already forked nodeeditor
mirror of
https://github.com/AxioDL/nodeeditor.git
synced 2026-03-30 11:48:31 -07:00
ddfdaa947d
* Update CMakeLists.txt to modern practices * Add CMake installs() restructure include/ src/ to accomodate it
18 lines
485 B
CMake
18 lines
485 B
CMake
get_filename_component(NodeEditor_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
# NOTE Had to use find_package because find_dependency does not support COMPONENTS or MODULE until 3.8.0
|
|
|
|
find_package(Qt5 REQUIRED COMPONENTS
|
|
Core
|
|
Widgets
|
|
Gui
|
|
OpenGL)
|
|
|
|
if(NOT TARGET NodeEditor::nodes)
|
|
include("${NodeEditor_CMAKE_DIR}/NodeEditorTargets.cmake")
|
|
endif()
|
|
|
|
set(NodeEditor_LIBRARIES NodeEditor::nodes)
|