2015-11-21 01:14:49 +00:00
|
|
|
add_subdirectory(freetype2)
|
|
|
|
|
|
|
|
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-21 23:45:02 +00:00
|
|
|
add_subdirectory(resources/fonts)
|
|
|
|
|
|
|
|
include_directories(include ${HECL_INCLUDE_DIR} ${BOO_INCLUDE_DIR}
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/freetype2/include)
|
2015-11-21 01:14:49 +00:00
|
|
|
|
|
|
|
list(APPEND SPECTER_HEADERS
|
|
|
|
include/Specter/Specter.hpp
|
|
|
|
include/Specter/View.hpp
|
|
|
|
include/Specter/RootView.hpp
|
2015-11-21 23:45:02 +00:00
|
|
|
include/Specter/TextView.hpp
|
2015-11-21 01:14:49 +00:00
|
|
|
include/Specter/Space.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/Node.hpp
|
2015-11-21 23:45:02 +00:00
|
|
|
include/Specter/NodeSocket.hpp
|
|
|
|
include/Specter/FontCache.hpp)
|
2015-11-21 01:14:49 +00:00
|
|
|
|
|
|
|
list(APPEND SPECTER_SOURCES
|
|
|
|
lib/Specter.cpp
|
|
|
|
lib/View.cpp
|
|
|
|
lib/RootView.cpp
|
2015-11-21 23:45:02 +00:00
|
|
|
lib/TextView.cpp
|
2015-11-21 01:14:49 +00:00
|
|
|
lib/Space.cpp
|
|
|
|
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/FontCache.cpp)
|
2015-11-21 01:14:49 +00:00
|
|
|
|
|
|
|
add_library(Specter ${SPECTER_SOURCES} ${SPECTER_HEADERS})
|