Commit e5f23d8f authored by Carson Black's avatar Carson Black

CMake

parent 6fb50260
build
builddir
cmake-build
flatbuild
.flatpak-builder
.vscode
CMakeLists.txt.user
\ No newline at end of file
CMakeLists.txt.user
cmake_minimum_required(VERSION 3.1)
project(ikona LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(NOT WIN32)
string(ASCII 27 Esc)
set(ColourReset "${Esc}[m")
set(Green "${Esc}[32m")
set(BoldBlue "${Esc}[1;34m")
endif()
find_package(Qt5 COMPONENTS Widgets Core Quick QuickControls2 WebEngine REQUIRED)
find_package(KF5Plasma)
find_package(KF5Kirigami2)
find_package(KF5PlasmaQuick)
add_executable(${PROJECT_NAME} "src/main.cpp" "qrc/qml.qrc" "qrc/images.qrc" "src/iconsetter.cpp" "src/iconsetter.h" "src/iconmanipulator.cpp" "src/iconmanipulator.h")
target_compile_definitions(${PROJECT_NAME} PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::WebEngine Qt5::Core Qt5::Quick Qt5::QuickControls2 KF5::Kirigami2 KF5::Plasma KF5::PlasmaQuick)
install(TARGETS ikona DESTINATION bin)
install(FILES data/me.appadeia.ikona.desktop DESTINATION share/applications)
install(FILES data/me.appadeia.ikona.svg DESTINATION share/icons/hicolor/scalable/apps)
install(FILES data/me.appadeia.ikona.appdata.xml DESTINATION share/metainfo)
install(DIRECTORY data/templates DESTINATION share)
message(STATUS "")
message(STATUS "if you're developing this, you should use the ${Green}meson.build${ColourReset} instead.")
message(STATUS "it's ${BoldBlue}*much*${ColourReset} faster, so you can iterate faster.")
message(STATUS "")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment