option(WITH_OPENGL "Build opengl support" ON)
add_feature_info(opengl WITH_OPENGL "an open source something")
-option(WITH_FONTCONFIG "Build fontconfig support" ON)
-add_feature_info(fontconfig WITH_FONTCONFIG "an open source something")
-
option(WITH_FREETYPE "Build freetype2 support" ON)
add_feature_info(freetype2 WITH_FREETYPE "an open source something")
+option(WITH_FONTCONFIG "Build fontconfig support" ON)
+add_feature_info(fontconfig WITH_FONTCONFIG "an open source something")
+
option(WITH_ICU "Build icu support" ON)
add_feature_info(icu WITH_ICU "an open source something")
TYPE OPTIONAL
)
+find_package(Freetype)
+set_package_properties(Freetype PROPERTIES
+ PURPOSE "Required for fonts configuration support"
+ DESCRIPTION "Freely available software library to render fonts"
+ URL "http://www.freetype.org"
+ TYPE RECOMMENDED
+)
find_package(Fontconfig)
set_package_properties(Fontconfig PROPERTIES
TYPE RECOMMENDED
)
-find_package(Freetype)
-set_package_properties(Freetype PROPERTIES
- PURPOSE "Required for fonts configuration support"
- DESCRIPTION "Freely available software library to render fonts"
- URL "http://www.freetype.org"
- TYPE RECOMMENDED
-)
-
find_package(ICU)
set_package_properties(ICU PROPERTIES
PURPOSE "ICU locales support"
${CMAKE_SOURCE_DIR}/src/core/io/qfsfileengine_unix.cpp
${CMAKE_SOURCE_DIR}/src/core/tools/qlocale_unix.cpp
)
-endif()
-
-if(KATIE_PLATFORM STREQUAL "win32")
+elseif(KATIE_PLATFORM STREQUAL "win32")
set(BOOTSTRAP_SOURCES
${BOOTSTRAP_SOURCES}
${CMAKE_SOURCE_DIR}/src/core/io/qfilesystemengine_win.cpp
${CMAKE_SOURCE_DIR}/src/core/plugin/qsystemlibrary.cpp
${CMAKE_SOURCE_DIR}/src/core/tools/qlocale_win.cpp
)
-endif()
-
-if(KATIE_PLATFORM STREQUAL "mac")
+elseif(KATIE_PLATFORM STREQUAL "mac")
set(BOOTSTRAP_SOURCES
${BOOTSTRAP_SOURCES}
${CMAKE_SOURCE_DIR}/src/core/tools/qlocale_mac.mm