@@ -43,23 +43,23 @@ execute_process(COMMAND ./scripts/generateVersion.sh
4343 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} )
4444
4545# https://github.com/libcpr/cpr/blob/5f475522597b8f3721e2440daddeced7a969f24c/CMakeLists.txt#L39
46- macro (add_option OPTION_NAME OPTION_TEXT OPTION_DEFAULT )
46+ macro (add_option OPTION_NAME OPTION_TEXT OPTION_DEFAULT DEFINE_OPTION )
4747 option (${OPTION_NAME} ${OPTION_TEXT} ${OPTION_DEFAULT} )
4848 if (DEFINED ENV{${OPTION_NAME} })
4949 # Allow overriding the option through an environment variable
5050 set (${OPTION_NAME} $ENV{${OPTION_NAME} })
5151 endif ()
52- if (${OPTION_NAME} )
52+ if (${OPTION_NAME} AND DEFINE_OPTION )
5353 add_definitions (-D${OPTION_NAME} )
5454 endif ()
5555 message (STATUS " ${OPTION_NAME} : ${${OPTION_NAME} }" )
5656endmacro ()
5757
5858message (STATUS "Set flags:" )
5959message (STATUS "=================" )
60- add_option (GUI_APP "Build GTK3 application" 0 )
61- add_option (USE_DCONF "Compile customfetch with dconf support" 1 )
62- add_option (VARS "Add additional flags at CXXFLAGS" "" )
60+ add_option (GUI_APP "Build GTK3 application" 0 1 )
61+ add_option (USE_DCONF "Compile customfetch with dconf support" 1 0 )
62+ add_option (VARS "Add additional flags at CXXFLAGS" "" 1 )
6363message (STATUS "=================" )
6464
6565if (GUI_APP)
@@ -135,6 +135,8 @@ add_library(cufetch SHARED
135135 libcufetch/config.cc
136136 libcufetch/cufetch.cc
137137 libcufetch/parse.cc
138+ src/libs/toml++/toml.cpp
139+ src/util.cpp
138140)
139141
140142set_target_properties (cufetch PROPERTIES
@@ -144,6 +146,7 @@ set_target_properties(cufetch PROPERTIES
144146 POSITION_INDEPENDENT_CODE ON
145147)
146148
149+ target_link_libraries (cufetch PUBLIC tiny-process-library )
147150target_link_libraries (cufetch PUBLIC fmt )
148151target_link_libraries (${TARGET_NAME} PUBLIC cufetch )
149152
0 commit comments