ResInsight/ThirdParty/nightcharts/CMakeLists.txt

35 lines
683 B
CMake
Raw Normal View History

cmake_minimum_required (VERSION 2.8.12)
project (nightcharts)
find_package(Qt5Core CONFIG QUIET)
if (Qt5Core_FOUND)
find_package(Qt5 CONFIG REQUIRED Core Widgets)
else()
find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
include(${QT_USE_FILE})
endif(Qt5Core_FOUND)
list (APPEND MAIN_SOURCE_FILES
nightcharts.h
nightcharts.cpp
nightchartswidget.h
nightchartswidget.cpp
)
add_library( ${PROJECT_NAME}
STATIC
${MAIN_SOURCE_FILES}
)
target_include_directories(${PROJECT_NAME}
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)
if (Qt5Core_FOUND)
target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Widgets)
endif()
source_group("" FILES ${PROJECT_FILES})