Skip to content
Snippets Groups Projects
Commit 757c32fe authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

CMake: -D ALIB_NOGUI

parent 3ad82fcb
No related branches found
No related tags found
No related merge requests found
Pipeline #22296 canceled
......@@ -70,12 +70,15 @@ find_package(LibXml2 REQUIRED)
find_package(cppunit REQUIRED)
find_package(tclap REQUIRED)
find_package(readline REQUIRED)
find_package(Qt5Widgets)
find_package(Qt5Xml)
find_package(Threads)
find_package(Graphviz)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml)
find_package(jsoncpp REQUIRED)
if(NOT ALIB_NOGUI)
find_package(Qt5Widgets)
find_package(Qt5Xml)
find_package(Threads)
find_package(Graphviz)
find_package(Qt5 REQUIRED COMPONENTS Core Widgets Xml)
find_package(jsoncpp REQUIRED)
endif()
 
 
# Cpp version
......@@ -89,6 +92,12 @@ set(ALIB_MODULES_EXE
{alib_modules_exe}
)
 
if (ALIB_NOGUI)
list (REMOVE_ITEM ALIB_MODULES_LIB "alib2gui")
list (REMOVE_ITEM ALIB_MODULES_EXE "agui2")
endif ()
##################
# Register modules
foreach (module ${{ALIB_MODULES_LIB}} ${{ALIB_MODULES_EXE}})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment