Skip to content

Commit

Permalink
got cmake options working, and displayed when running cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben2020 committed Apr 9, 2020
1 parent 2caa085 commit 3676968
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@ cmake_minimum_required(VERSION 3.2.2)
project(CodeQuery)


option(BUILD_QT5 ON)
option(NO_GUI OFF)
option(BUILD_QT5 "Qt5 option" ON)
option(NO_GUI "No GUI option" OFF)

MESSAGE("-- NO_GUI = " ${NO_GUI})
if (NO_GUI)
else (NO_GUI)
MESSAGE("-- BUILD_QT5 = " ${BUILD_QT5})
endif(NO_GUI)

# C++11 now always required
SET( CMAKE_CXX_STANDARD 11 )
Expand Down

0 comments on commit 3676968

Please sign in to comment.