Different solution for FGQCanvas install
Move the install line back inside the subdir, but pull in the extra config file so the install-bindir is defined.
This commit is contained in:
parent
311d59011c
commit
80e45f6d9b
3 changed files with 5 additions and 6 deletions
|
@ -37,9 +37,4 @@ endif()
|
|||
|
||||
if (ENABLE_FGQCANVAS)
|
||||
add_subdirectory(fgqcanvas)
|
||||
|
||||
if (TARGET fgqcanvas)
|
||||
# do this here so standalone build of FGQCanvas works
|
||||
install(TARGETS fgqcanvas RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.0)
|
|||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
project(FGQCanvas)
|
||||
|
||||
find_package(Qt5 5.4 COMPONENTS Widgets WebSockets)
|
||||
|
@ -55,3 +57,5 @@ target_include_directories(fgqcanvas PRIVATE ${PROJECT_SOURCE_DIR})
|
|||
|
||||
# so ui_foo.h files are found
|
||||
target_include_directories(fgqcanvas PRIVATE ${PROJECT_BINARY_DIR})
|
||||
|
||||
install(TARGETS fgqcanvas RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
|
|
Loading…
Reference in a new issue