Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
qualicheck/CMakeLists.txt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (29 sloc)
1.23 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMAKE_MINIMUM_REQUIRED(VERSION 3.0) | |
project(qualicheck) | |
set(CMAKE_CXX_STANDARD 14) | |
set(CMAKE_CXX_STANDARD_REQUIRED yes) | |
########################################################### | |
# find and configure the isis core library | |
########################################################### | |
find_package(ISIS REQUIRED COMPONENTS ISISMath ISISAdapter) | |
include_directories(${ISIS_INCLUDE_DIRS}) | |
find_package(GSL) | |
############################################################################### | |
# add global options | |
############################################################################### | |
ADD_DEFINITIONS(-D_ENABLE_LOG=1) | |
ADD_DEFINITIONS(-D_ENABLE_DEBUG=1) | |
# Find includes in corresponding build directories | |
set(CMAKE_INCLUDE_CURRENT_DIR ON) | |
# Instruct CMake to run moc automatically when needed. | |
set(CMAKE_AUTOMOC ON) | |
# Find the QtWidgets library | |
find_package(Qt5Widgets CONFIG REQUIRED) | |
# Create code from a list of Qt designer ui files. | |
set(CMAKE_AUTOUIC ON) | |
# Tell CMake to create the helloworld executable | |
add_executable(qualicheck main.cpp qualicheck.cpp) | |
# Use the Widgets module from Qt 5. | |
target_link_libraries(qualicheck Qt5::Widgets GSL::gsl ${ISIS_LIBS} ${ISIS_QT5_LIBS}) | |
# Install the executable | |
install(TARGETS qualicheck DESTINATION bin) |