2015-11-21 01:14:49 +00:00
|
|
|
add_subdirectory(freetype2)
|
2016-01-17 05:06:02 +00:00
|
|
|
add_definitions("-DZE_ATHENA_TYPES=1")
|
2015-11-25 01:46:30 +00:00
|
|
|
add_subdirectory(MathLib)
|
|
|
|
set(MATHLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/MathLib/include)
|
2015-11-21 01:14:49 +00:00
|
|
|
|
|
|
|
if(NOT DEFINED HECL_INCLUDE_DIR)
|
|
|
|
message(FATAL_ERROR "Specter may only be built as a sub-project containing hecl with
|
|
|
|
HECL_INCLUDE_DIR set")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT DEFINED BOO_INCLUDE_DIR)
|
|
|
|
message(FATAL_ERROR "Specter may only be built as a sub-project containing boo with
|
|
|
|
BOO_INCLUDE_DIR set")
|
|
|
|
endif()
|
|
|
|
|
2015-11-22 04:32:12 +00:00
|
|
|
if(NOT DEFINED ATHENA_INCLUDE_DIR)
|
|
|
|
message(FATAL_ERROR "Specter may only be built as a sub-project containing Athena with
|
|
|
|
ATHENA_INCLUDE_DIR set")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT DEFINED LOG_VISOR_INCLUDE_DIR)
|
|
|
|
message(FATAL_ERROR "Specter may only be built as a sub-project containing LogVisor with
|
|
|
|
LOG_VISOR_INCLUDE_DIR set")
|
|
|
|
endif()
|
|
|
|
|
2015-11-21 23:45:02 +00:00
|
|
|
add_subdirectory(resources/fonts)
|
|
|
|
|
|
|
|
include_directories(include ${HECL_INCLUDE_DIR} ${BOO_INCLUDE_DIR}
|
2015-11-22 04:32:12 +00:00
|
|
|
${LOG_VISOR_INCLUDE_DIR} ${ATHENA_INCLUDE_DIR}
|
2015-11-25 01:46:30 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/freetype2/include
|
2015-12-01 00:35:45 +00:00
|
|
|
${MATHLIB_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
|
2015-11-21 01:14:49 +00:00
|
|
|
|
|
|
|
list(APPEND SPECTER_HEADERS
|
|
|
|
include/Specter/Specter.hpp
|
2015-12-02 01:32:15 +00:00
|
|
|
include/Specter/ViewResources.hpp
|
2015-12-31 03:19:03 +00:00
|
|
|
include/Specter/IViewManager.hpp
|
2015-12-01 00:35:45 +00:00
|
|
|
include/Specter/DeferredWindowEvents.hpp
|
2015-11-21 01:14:49 +00:00
|
|
|
include/Specter/View.hpp
|
|
|
|
include/Specter/RootView.hpp
|
2015-12-15 21:53:15 +00:00
|
|
|
include/Specter/ModalWindow.hpp
|
2016-01-02 23:07:40 +00:00
|
|
|
include/Specter/MessageWindow.hpp
|
2015-12-07 00:52:07 +00:00
|
|
|
include/Specter/Tooltip.hpp
|
2015-12-02 01:32:15 +00:00
|
|
|
include/Specter/SplitView.hpp
|
2015-11-29 02:55:30 +00:00
|
|
|
include/Specter/ScrollView.hpp
|
2015-11-21 23:45:02 +00:00
|
|
|
include/Specter/TextView.hpp
|
2015-11-29 02:55:30 +00:00
|
|
|
include/Specter/MultiLineTextView.hpp
|
2015-11-21 01:14:49 +00:00
|
|
|
include/Specter/Space.hpp
|
2015-12-03 03:26:50 +00:00
|
|
|
include/Specter/Toolbar.hpp
|
2015-11-21 01:14:49 +00:00
|
|
|
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
|
2016-01-29 04:30:04 +00:00
|
|
|
include/Specter/IMenuNode.hpp
|
2015-11-21 01:14:49 +00:00
|
|
|
include/Specter/Node.hpp
|
2015-11-21 23:45:02 +00:00
|
|
|
include/Specter/NodeSocket.hpp
|
2016-01-07 00:39:18 +00:00
|
|
|
include/Specter/PathButtons.hpp
|
2015-12-15 21:53:15 +00:00
|
|
|
include/Specter/FileBrowser.hpp
|
2016-01-18 23:32:16 +00:00
|
|
|
include/Specter/Icon.hpp
|
2015-12-06 01:24:51 +00:00
|
|
|
include/Specter/FontCache.hpp
|
|
|
|
include/Specter/Translator.hpp)
|
2015-11-21 01:14:49 +00:00
|
|
|
|
2015-11-23 08:47:21 +00:00
|
|
|
atdna(atdna_FontCache.cpp include/Specter/FontCache.hpp)
|
|
|
|
|
2015-11-21 01:14:49 +00:00
|
|
|
list(APPEND SPECTER_SOURCES
|
|
|
|
lib/Specter.cpp
|
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/Outliner.cpp
|
|
|
|
lib/Panel.cpp
|
|
|
|
lib/Control.cpp
|
|
|
|
lib/Button.cpp
|
|
|
|
lib/TextField.cpp
|
|
|
|
lib/NumericField.cpp
|
|
|
|
lib/Menu.cpp
|
|
|
|
lib/Node.cpp
|
2015-11-21 23:45:02 +00:00
|
|
|
lib/NodeSocket.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
|
2015-11-23 08:47:21 +00:00
|
|
|
lib/FontCache.cpp
|
2015-12-06 01:24:51 +00:00
|
|
|
lib/Translator.cpp
|
2015-11-23 08:47:21 +00:00
|
|
|
atdna_FontCache.cpp)
|
2015-11-21 01:14:49 +00:00
|
|
|
|
|
|
|
add_library(Specter ${SPECTER_SOURCES} ${SPECTER_HEADERS})
|