metaforce/specter/CMakeLists.txt

100 lines
3.0 KiB
CMake
Raw Normal View History

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")
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
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()
2016-03-04 23:03:47 +00:00
if(NOT DEFINED LOGVISOR_INCLUDE_DIR)
message(FATAL_ERROR "Specter may only be built as a sub-project containing logvisor with
LOGVISOR_INCLUDE_DIR set")
2015-11-22 04:32:12 +00:00
endif()
2015-11-21 23:45:02 +00:00
add_subdirectory(resources/fonts)
include_directories(include ${HECL_INCLUDE_DIR} ${BOO_INCLUDE_DIR}
2016-03-04 23:03:47 +00:00
${LOGVISOR_INCLUDE_DIR} ${ATHENA_INCLUDE_DIR}
2015-11-25 01:46:30 +00:00
${CMAKE_CURRENT_SOURCE_DIR}/freetype2/include
2016-03-04 23:03:47 +00:00
${ZEUS_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR})
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/Translator.hpp
include/specter/genie.hpp)
2015-11-21 01:14:49 +00:00
2016-03-04 23:03:47 +00:00
atdna(atdna_FontCache.cpp include/specter/FontCache.hpp)
2015-11-23 08:47:21 +00:00
2015-11-21 01:14:49 +00:00
list(APPEND SPECTER_SOURCES
2016-03-04 23:03:47 +00:00
lib/specter.cpp
lib/ViewResources.cpp
2015-11-21 01:14:49 +00:00
lib/View.cpp
lib/RootView.cpp
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
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
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
lib/PathButtons.cpp
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
lib/Translator.cpp
2015-11-23 08:47:21 +00:00
atdna_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})