2015-11-21 01:14:49 +00:00
|
|
|
add_subdirectory(freetype2)
|
2019-06-12 02:05:04 +00:00
|
|
|
if (NOT MSVC)
|
|
|
|
target_compile_options(freetype PRIVATE -Wno-implicit-fallthrough)
|
|
|
|
endif()
|
2016-03-04 23:03:47 +00:00
|
|
|
add_subdirectory(zeus)
|
|
|
|
set(ZEUS_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/zeus/include)
|
2015-11-21 01:14:49 +00:00
|
|
|
|
2015-11-21 23:45:02 +00:00
|
|
|
add_subdirectory(resources/fonts)
|
|
|
|
|
2015-11-21 01:14:49 +00:00
|
|
|
list(APPEND SPECTER_HEADERS
|
2016-03-04 23:03:47 +00:00
|
|
|
include/specter/specter.hpp
|
|
|
|
include/specter/ViewResources.hpp
|
|
|
|
include/specter/IViewManager.hpp
|
|
|
|
include/specter/View.hpp
|
|
|
|
include/specter/RootView.hpp
|
|
|
|
include/specter/ModalWindow.hpp
|
|
|
|
include/specter/MessageWindow.hpp
|
|
|
|
include/specter/Tooltip.hpp
|
|
|
|
include/specter/SplitView.hpp
|
|
|
|
include/specter/ScrollView.hpp
|
|
|
|
include/specter/TextView.hpp
|
|
|
|
include/specter/MultiLineTextView.hpp
|
|
|
|
include/specter/Space.hpp
|
|
|
|
include/specter/Toolbar.hpp
|
|
|
|
include/specter/Table.hpp
|
|
|
|
include/specter/Outliner.hpp
|
|
|
|
include/specter/Panel.hpp
|
|
|
|
include/specter/Control.hpp
|
|
|
|
include/specter/Button.hpp
|
|
|
|
include/specter/TextField.hpp
|
|
|
|
include/specter/NumericField.hpp
|
|
|
|
include/specter/Menu.hpp
|
|
|
|
include/specter/IMenuNode.hpp
|
|
|
|
include/specter/Node.hpp
|
|
|
|
include/specter/NodeSocket.hpp
|
|
|
|
include/specter/PathButtons.hpp
|
|
|
|
include/specter/FileBrowser.hpp
|
|
|
|
include/specter/Icon.hpp
|
|
|
|
include/specter/FontCache.hpp
|
2017-12-16 02:14:27 +00:00
|
|
|
include/specter/genie.hpp)
|
2015-11-21 01:14:49 +00:00
|
|
|
|
|
|
|
list(APPEND SPECTER_SOURCES
|
2015-12-03 03:26:50 +00:00
|
|
|
lib/ViewResources.cpp
|
2015-11-21 01:14:49 +00:00
|
|
|
lib/View.cpp
|
|
|
|
lib/RootView.cpp
|
2015-12-15 21:53:15 +00:00
|
|
|
lib/ModalWindow.cpp
|
2016-01-02 23:07:40 +00:00
|
|
|
lib/MessageWindow.cpp
|
2015-12-07 00:52:07 +00:00
|
|
|
lib/Tooltip.cpp
|
2015-12-02 01:32:15 +00:00
|
|
|
lib/SplitView.cpp
|
2015-11-29 02:55:30 +00:00
|
|
|
lib/ScrollView.cpp
|
2015-11-21 23:45:02 +00:00
|
|
|
lib/TextView.cpp
|
2015-11-29 02:55:30 +00:00
|
|
|
lib/MultiLineTextView.cpp
|
2015-11-21 01:14:49 +00:00
|
|
|
lib/Space.cpp
|
2015-12-03 03:26:50 +00:00
|
|
|
lib/Toolbar.cpp
|
2015-11-21 01:14:49 +00:00
|
|
|
lib/Table.cpp
|
|
|
|
lib/Control.cpp
|
|
|
|
lib/Button.cpp
|
|
|
|
lib/TextField.cpp
|
|
|
|
lib/Menu.cpp
|
2016-01-07 00:39:18 +00:00
|
|
|
lib/PathButtons.cpp
|
2015-12-15 21:53:15 +00:00
|
|
|
lib/FileBrowser.cpp
|
2016-01-18 23:32:16 +00:00
|
|
|
lib/Icon.cpp
|
2019-07-20 04:26:59 +00:00
|
|
|
lib/FontCache.cpp)
|
2015-11-21 01:14:49 +00:00
|
|
|
|
2016-03-04 23:03:47 +00:00
|
|
|
add_library(specter ${SPECTER_SOURCES} ${SPECTER_HEADERS})
|
2019-06-12 02:05:04 +00:00
|
|
|
target_link_libraries(specter PUBLIC specter-fonts freetype hecl-full zeus)
|
|
|
|
target_include_directories(specter PUBLIC include freetype2/include)
|
|
|
|
target_atdna(specter atdna_FontCache.cpp include/specter/FontCache.hpp)
|