2018-02-27 11:49:24 -06:00
|
|
|
cmake_minimum_required (VERSION 2.8.12)
|
2017-01-21 05:36:14 -06:00
|
|
|
|
|
|
|
project (nightcharts)
|
|
|
|
|
2018-12-10 07:49:38 -06:00
|
|
|
if (RESINSIGHT_BUILD_WITH_QT5)
|
2019-02-08 04:28:51 -06:00
|
|
|
find_package(Qt5 COMPONENTS Core Widgets REQUIRED)
|
2018-11-26 04:27:58 -06:00
|
|
|
else()
|
|
|
|
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
|
|
|
|
include(${QT_USE_FILE})
|
2019-02-08 04:28:51 -06:00
|
|
|
endif(RESINSIGHT_BUILD_WITH_QT5)
|
2018-11-26 04:27:58 -06:00
|
|
|
|
2017-01-21 05:36:14 -06:00
|
|
|
list (APPEND MAIN_SOURCE_FILES
|
|
|
|
nightcharts.h
|
|
|
|
nightcharts.cpp
|
|
|
|
nightchartswidget.h
|
|
|
|
nightchartswidget.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library( ${PROJECT_NAME}
|
|
|
|
STATIC
|
|
|
|
${MAIN_SOURCE_FILES}
|
|
|
|
)
|
|
|
|
|
2018-02-27 11:49:24 -06:00
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2019-02-08 04:28:51 -06:00
|
|
|
if (RESINSIGHT_BUILD_WITH_QT5)
|
2018-11-26 04:27:58 -06:00
|
|
|
target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Widgets)
|
2019-02-08 04:28:51 -06:00
|
|
|
endif(RESINSIGHT_BUILD_WITH_QT5)
|
2018-11-26 04:27:58 -06:00
|
|
|
|
2018-02-27 11:49:24 -06:00
|
|
|
source_group("" FILES ${PROJECT_FILES})
|