Skip to content
Snippets Groups Projects
Commit 37b0e008 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

cmake: Move Qt stuff to src/CMakeLists.txt

parent 36d5e3e9
No related branches found
Tags 3.2.0-b3
No related merge requests found
......@@ -106,20 +106,6 @@ endif()
INCLUDE_DIRECTORIES(${FREI0R_INCLUDE_DIR})
# Manually set Qt5 path for OSX installed using brew
SET(CMAKE_PREFIX_PATH "/usr/local/opt/qt5")
# search for Qt5
find_package(Qt5Core QUIET)
if (Qt5Core_FOUND)
# go on with other packages
if(WITH_GUI)
find_package(Qt5 COMPONENTS Widgets Gui Xml Network)
else()
find_packages(Qt5 COMPONENTS Xml Network)
endif()
endif()
# layout of VLMC installation
# (default values are platform-specific)
SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
......
......@@ -6,6 +6,21 @@
#check if version will support target_compile_features command
#to ensure we can use some C++11 featrues
cmake_minimum_required(VERSION 3.1)
# Manually set Qt5 path for OSX installed using brew
SET(CMAKE_PREFIX_PATH "/usr/local/opt/qt5")
# search for Qt5
find_package(Qt5Core QUIET)
if (Qt5Core_FOUND)
# go on with other packages
if(WITH_GUI)
find_package(Qt5 COMPONENTS Widgets Gui Xml Network)
else()
find_packages(Qt5 COMPONENTS Xml Network)
endif()
endif()
SET(VLMC_SRCS
Commands/Commands.cpp
Backend/IBackend.h
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment