c07fff7503
make it not horrible to look at Signed-off-by: kumquat-ir <66188216+kumquat-ir@users.noreply.github.com>
19 lines
553 B
CMake
19 lines
553 B
CMake
cmake_minimum_required(VERSION 3.9.4)
|
|
project(qdcss)
|
|
|
|
if(QT_VERSION_MAJOR EQUAL 5)
|
|
find_package(Qt5 COMPONENTS Core REQUIRED)
|
|
elseif(Launcher_QT_VERSION_MAJOR EQUAL 6)
|
|
find_package(Qt6 COMPONENTS Core Core5Compat REQUIRED)
|
|
list(APPEND qdcss_LIBS Qt${QT_VERSION_MAJOR}::Core5Compat)
|
|
endif()
|
|
|
|
set(QDCSS_SOURCES
|
|
include/qdcss.h
|
|
src/qdcss.cpp
|
|
)
|
|
|
|
add_library(qdcss STATIC ${QDCSS_SOURCES})
|
|
target_include_directories(qdcss PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
|
target_link_libraries(qdcss Qt${QT_VERSION_MAJOR}::Core ${qdcss_LIBS})
|