-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
26 lines (21 loc) · 995 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required(VERSION 3.0.0)
project(peony-qt-extensions VERSION 0.1 LANGUAGES CXX)
include(ExternalProject)
set(peony-qt-extensions-cmake-impl-dir ${PROJECT_SOURCE_DIR}/peony-qt-extensions-cmake)
set(peony-qt-extensions-qmake-impl-dir ${PROJECT_SOURCE_DIR}/peony-qt-extensions-qmake)
ExternalProject_Add(peony-qt-extensions-cmake
SOURCE_DIR ${peony-qt-extensions-cmake-impl-dir}
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/peony-qt-extensions-cmake
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND cmake ${peony-qt-extensions-cmake-impl-dir}
BUILD_COMMAND make
INSTALL_COMMAND cmake -E echo "skip install step."
)
ExternalProject_Add(peony-qt-extensions-qmake
SOURCE_DIR ${peony-qt-extensions-qmake-impl-dir}
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/peony-qt-extensions-qmake
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND qmake ${peony-qt-extensions-qmake-impl-dir}
BUILD_COMMAND make
INSTALL_COMMAND cmake -E echo "skip install step."
)