From b3cf236b34c386a9cbff81ffc1631554bd60ee1b Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Fri, 23 Apr 2021 15:53:36 +0200 Subject: Port to CMake Qt is slowly deprecating QMake. They have stopped building Qt itself with QMake and moved Qt6 to CMake instead. Although QMake is still around, it's clear the focus has shifted and it would be good for applications to switch over to an alternative build system as well So hereby, switch the build system to CMake --- src/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/CMakeLists.txt (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..a9ef740 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,8 @@ +add_library(asteroid-compass main.cpp resources.qrc) +set_target_properties(asteroid-compass PROPERTIES PREFIX "" SUFFIX "") + +target_link_libraries(asteroid-compass PUBLIC + AsteroidApp) + +install(TARGETS asteroid-compass + DESTINATION ${CMAKE_INSTALL_BINDIR}) -- cgit v1.2.3-54-g00ecf