Convert to CMake build system
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
cmake_minimum_required (VERSION 3.15)
|
||||
|
||||
project(Tenmon)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
find_package(Qt5 COMPONENTS Widgets Sql OpenGL REQUIRED)
|
||||
find_package(OpenCV REQUIRED)
|
||||
find_library(GSL_LIB gsl REQUIRED)
|
||||
find_library(EXIF_LIB exif REQUIRED)
|
||||
find_library(FITS_LIB cfitsio REQUIRED)
|
||||
find_library(RAW_LIB NAMES raw_r raw REQUIRED)
|
||||
|
||||
set(TENMON_SRC
|
||||
database.cpp
|
||||
filesystemwidget.cpp
|
||||
imageinfo.cpp
|
||||
imageringlist.cpp
|
||||
imagescrollarea.cpp
|
||||
imagescrollareagl.cpp
|
||||
loadrunable.cpp
|
||||
main.cpp
|
||||
mainwindow.cpp
|
||||
rawimage.cpp
|
||||
starfit.cpp
|
||||
stfslider.cpp
|
||||
stretchpanel.cpp
|
||||
)
|
||||
|
||||
qt5_add_resources(TENMON_SRC resources.qrc)
|
||||
|
||||
add_executable(tenmon ${TENMON_SRC})
|
||||
|
||||
target_include_directories(tenmon PRIVATE ${OpenCV_INCLUDE_DIRS})
|
||||
|
||||
target_link_libraries(tenmon Qt5::Widgets Qt5::Sql Qt5::OpenGL ${OpenCV_LIBS} ${GSL_LIB} ${EXIF_LIB} ${FITS_LIB} ${RAW_LIB})
|
||||
Reference in New Issue
Block a user