Squashed 'deps/nostalgia/' content from commit 9cb6bd4a
git-subtree-dir: deps/nostalgia git-subtree-split: 9cb6bd4a32e9f39a858f72443ff5c6d40489fe22
This commit is contained in:
52
src/nostalgia/modules/CMakeLists.txt
Normal file
52
src/nostalgia/modules/CMakeLists.txt
Normal file
@@ -0,0 +1,52 @@
|
||||
# module dir list
|
||||
|
||||
add_subdirectory(core)
|
||||
add_subdirectory(scene)
|
||||
|
||||
# module libraries
|
||||
|
||||
# Keel
|
||||
add_library(
|
||||
NostalgiaKeelModules STATIC
|
||||
keelmodules.cpp
|
||||
)
|
||||
target_link_libraries(
|
||||
NostalgiaKeelModules PUBLIC
|
||||
Keel
|
||||
NostalgiaCore-Keel
|
||||
NostalgiaScene-Keel
|
||||
)
|
||||
install(
|
||||
FILES
|
||||
keelmodules.hpp
|
||||
DESTINATION
|
||||
include/nostalgia/modules
|
||||
)
|
||||
|
||||
# Studio
|
||||
if(NOSTALGIA_BUILD_STUDIO)
|
||||
add_library(
|
||||
NostalgiaStudioModules STATIC
|
||||
studiomodules.cpp
|
||||
)
|
||||
target_link_libraries(
|
||||
NostalgiaStudioModules PUBLIC
|
||||
StudioAppLib
|
||||
NostalgiaCore-Studio-ImGui
|
||||
NostalgiaScene-Studio
|
||||
)
|
||||
install(
|
||||
FILES
|
||||
studiomodules.hpp
|
||||
DESTINATION
|
||||
include/nostalgia/modules
|
||||
)
|
||||
endif()
|
||||
|
||||
add_library(NostalgiaProfile INTERFACE)
|
||||
target_compile_definitions(
|
||||
NostalgiaProfile INTERFACE
|
||||
OLYMPIC_PROJECT_NAME="Nostalgia"
|
||||
OLYMPIC_PROJECT_NAMESPACE=nostalgia
|
||||
OLYMPIC_PROJECT_DATADIR=".nostalgia"
|
||||
)
|
||||
Reference in New Issue
Block a user