comparison CMakeLists.txt @ 201:8f6f8dd2eb23

dep/animia: finish kvm backend dep/animia: cmake: don't use kvm on unsupported systems, use private and public includes properly cmake: why are we defining target include directories twice?
author paper@DavesDouble.local
date Sun, 19 Nov 2023 19:13:28 -0500
parents 6fdf0632c003
children 71832ffe425a
comparison
equal deleted inserted replaced
169:e44b7c428d7c 201:8f6f8dd2eb23
193 add_executable(minori WIN32 MACOSX_BUNDLE ${SRC_FILES}) 193 add_executable(minori WIN32 MACOSX_BUNDLE ${SRC_FILES})
194 set_property(TARGET minori PROPERTY CXX_STANDARD 17) 194 set_property(TARGET minori PROPERTY CXX_STANDARD 17)
195 set_property(TARGET minori PROPERTY AUTOMOC ON) 195 set_property(TARGET minori PROPERTY AUTOMOC ON)
196 set_property(TARGET minori PROPERTY AUTORCC ON) 196 set_property(TARGET minori PROPERTY AUTORCC ON)
197 197
198 target_include_directories(minori PUBLIC ${CURL_INCLUDE_DIRS} PRIVATE ${INCLUDE}) 198 target_include_directories(minori PUBLIC ${Qt${QT_VERSION_MAJOR}Widgets_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} PRIVATE ${INCLUDE})
199 target_include_directories(minori PUBLIC ${Qt${QT_VERSION_MAJOR}Widgets_INCLUDE_DIRS})
200 target_compile_options(minori PRIVATE -Wall -Wpedantic -Wextra -Wsuggest-override -Wold-style-cast) 199 target_compile_options(minori PRIVATE -Wall -Wpedantic -Wextra -Wsuggest-override -Wold-style-cast)
201 if(APPLE) 200 if(APPLE)
202 target_compile_definitions(minori PUBLIC MACOSX) 201 target_compile_definitions(minori PUBLIC MACOSX)
203 elseif(WIN32) 202 elseif(WIN32)
204 target_compile_definitions(minori PUBLIC WIN32) 203 target_compile_definitions(minori PUBLIC WIN32)