[nostalgia] Move Olympic app parameters to NostalgiaProfile library

This commit is contained in:
Gary Talent 2023-12-11 22:21:01 -06:00
parent aea1aabcd7
commit 5b929b8796
4 changed files with 12 additions and 9 deletions

View File

@ -16,12 +16,6 @@ target_link_libraries(
NostalgiaCore-Keel
NostalgiaScene-Keel
)
target_compile_definitions(
NostalgiaKeelModules PUBLIC
OLYMPIC_PROJECT_NAME="Nostalgia"
OLYMPIC_PROJECT_NAMESPACE=nostalgia
OLYMPIC_PROJECT_DATADIR=".nostalgia"
)
install(
FILES
keelmodules.hpp
@ -48,3 +42,11 @@ if(TURBINE_BUILD_TYPE STREQUAL "Native")
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"
)

View File

@ -1,5 +1,3 @@
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_executable(
nostalgia-studio WIN32 MACOSX_BUNDLE
${OLYMPIC_PATH}/applib/applib.cpp
@ -7,6 +5,7 @@ add_executable(
target_link_libraries(
nostalgia-studio
NostalgiaProfile
NostalgiaStudioModules
NostalgiaKeelModules
StudioAppLib

View File

@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>nostalgia-studio</string>
<string>Nostalgia Studio</string>
<key>CFBundleGetInfoString</key>
<string>Nostalgia Studio</string>
<key>CFBundleIconFile</key>

View File

@ -6,6 +6,8 @@ add_executable(
target_link_libraries(
nostalgia-pack
KeelPack-AppLib
NostalgiaKeelModules
NostalgiaProfile
)
if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT WIN32)