mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #4 from lioncash/cmake
CMakeLists: Add source files directly to specter target
This commit is contained in:
commit
8d55404785
|
@ -2,67 +2,73 @@ add_subdirectory(freetype2)
|
||||||
if (NOT MSVC)
|
if (NOT MSVC)
|
||||||
target_compile_options(freetype PRIVATE -Wno-implicit-fallthrough)
|
target_compile_options(freetype PRIVATE -Wno-implicit-fallthrough)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(zeus)
|
add_subdirectory(zeus)
|
||||||
set(ZEUS_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/zeus/include)
|
set(ZEUS_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/zeus/include)
|
||||||
|
|
||||||
add_subdirectory(resources/fonts)
|
add_subdirectory(resources/fonts)
|
||||||
|
|
||||||
list(APPEND SPECTER_HEADERS
|
add_library(specter
|
||||||
include/specter/specter.hpp
|
lib/Button.cpp
|
||||||
include/specter/ViewResources.hpp
|
lib/Control.cpp
|
||||||
include/specter/IViewManager.hpp
|
lib/FileBrowser.cpp
|
||||||
include/specter/View.hpp
|
lib/FontCache.cpp
|
||||||
include/specter/RootView.hpp
|
lib/Icon.cpp
|
||||||
include/specter/ModalWindow.hpp
|
lib/Menu.cpp
|
||||||
include/specter/MessageWindow.hpp
|
lib/MessageWindow.cpp
|
||||||
include/specter/Tooltip.hpp
|
lib/ModalWindow.cpp
|
||||||
include/specter/SplitView.hpp
|
lib/MultiLineTextView.cpp
|
||||||
include/specter/ScrollView.hpp
|
lib/PathButtons.cpp
|
||||||
include/specter/TextView.hpp
|
lib/RootView.cpp
|
||||||
include/specter/MultiLineTextView.hpp
|
lib/ScrollView.cpp
|
||||||
include/specter/Space.hpp
|
lib/Space.cpp
|
||||||
include/specter/Toolbar.hpp
|
lib/SplitView.cpp
|
||||||
include/specter/Table.hpp
|
lib/Table.cpp
|
||||||
include/specter/Outliner.hpp
|
lib/TextField.cpp
|
||||||
include/specter/Panel.hpp
|
lib/TextView.cpp
|
||||||
include/specter/Control.hpp
|
lib/Toolbar.cpp
|
||||||
include/specter/Button.hpp
|
lib/Tooltip.cpp
|
||||||
include/specter/TextField.hpp
|
lib/View.cpp
|
||||||
include/specter/NumericField.hpp
|
lib/ViewResources.cpp
|
||||||
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
|
|
||||||
include/specter/genie.hpp)
|
|
||||||
|
|
||||||
list(APPEND SPECTER_SOURCES
|
include/specter/Button.hpp
|
||||||
lib/ViewResources.cpp
|
include/specter/Control.hpp
|
||||||
lib/View.cpp
|
include/specter/FileBrowser.hpp
|
||||||
lib/RootView.cpp
|
include/specter/FontCache.hpp
|
||||||
lib/ModalWindow.cpp
|
include/specter/IMenuNode.hpp
|
||||||
lib/MessageWindow.cpp
|
include/specter/IViewManager.hpp
|
||||||
lib/Tooltip.cpp
|
include/specter/Icon.hpp
|
||||||
lib/SplitView.cpp
|
include/specter/Menu.hpp
|
||||||
lib/ScrollView.cpp
|
include/specter/MessageWindow.hpp
|
||||||
lib/TextView.cpp
|
include/specter/ModalWindow.hpp
|
||||||
lib/MultiLineTextView.cpp
|
include/specter/MultiLineTextView.hpp
|
||||||
lib/Space.cpp
|
include/specter/Node.hpp
|
||||||
lib/Toolbar.cpp
|
include/specter/NodeSocket.hpp
|
||||||
lib/Table.cpp
|
include/specter/NumericField.hpp
|
||||||
lib/Control.cpp
|
include/specter/Outliner.hpp
|
||||||
lib/Button.cpp
|
include/specter/Panel.hpp
|
||||||
lib/TextField.cpp
|
include/specter/PathButtons.hpp
|
||||||
lib/Menu.cpp
|
include/specter/RootView.hpp
|
||||||
lib/PathButtons.cpp
|
include/specter/ScrollView.hpp
|
||||||
lib/FileBrowser.cpp
|
include/specter/Space.hpp
|
||||||
lib/Icon.cpp
|
include/specter/SplitView.hpp
|
||||||
lib/FontCache.cpp)
|
include/specter/Table.hpp
|
||||||
|
include/specter/TextField.hpp
|
||||||
|
include/specter/TextView.hpp
|
||||||
|
include/specter/Toolbar.hpp
|
||||||
|
include/specter/Tooltip.hpp
|
||||||
|
include/specter/View.hpp
|
||||||
|
include/specter/ViewResources.hpp
|
||||||
|
include/specter/genie.hpp
|
||||||
|
include/specter/specter.hpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(specter PUBLIC
|
||||||
|
freetype
|
||||||
|
hecl-full
|
||||||
|
specter-fonts
|
||||||
|
zeus
|
||||||
|
)
|
||||||
|
|
||||||
add_library(specter ${SPECTER_SOURCES} ${SPECTER_HEADERS})
|
|
||||||
target_link_libraries(specter PUBLIC specter-fonts freetype hecl-full zeus)
|
|
||||||
target_include_directories(specter PUBLIC include freetype2/include)
|
target_include_directories(specter PUBLIC include freetype2/include)
|
||||||
target_atdna(specter atdna_FontCache.cpp include/specter/FontCache.hpp)
|
target_atdna(specter atdna_FontCache.cpp include/specter/FontCache.hpp)
|
||||||
|
|
Loading…
Reference in New Issue