Files
nodeeditor/cmake/NodeEditorConfig.cmake.in
Justin ddfdaa947d Improve cmake (modernize, add install()s) (#142)
* Update CMakeLists.txt to modern practices

* Add CMake installs()
restructure include/ src/ to accomodate it
2018-03-11 18:03:03 +01:00

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)