[olympic,nostalgia] Make Applib an interface library that publicly exports applib.cpp

This commit is contained in:
Gary Talent 2023-12-12 20:13:07 -06:00
parent debeb83119
commit a1de7fbd8a
5 changed files with 14 additions and 11 deletions

View File

@ -1,6 +1,4 @@
include_directories(".")
set(OLYMPIC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/olympic")
add_subdirectory(nostalgia)
add_subdirectory(olympic)

View File

@ -18,7 +18,7 @@ void registerStudioModules() noexcept {
}
modulesRegistered = true;
studio::registerModule(core::studioModule());
studio::registerModule(scene::studioModule());
//studio::registerModule(scene::studioModule());
}
}

View File

@ -1,7 +1,4 @@
add_executable(
nostalgia-studio WIN32 MACOSX_BUNDLE
${OLYMPIC_PATH}/applib/applib.cpp
)
add_executable(nostalgia-studio WIN32 MACOSX_BUNDLE)
target_link_libraries(
nostalgia-studio
@ -9,6 +6,7 @@ target_link_libraries(
NostalgiaStudioModules
NostalgiaKeelModules
StudioAppLib
OlympicApplib
)
install(

View File

@ -1,13 +1,11 @@
add_executable(
nostalgia-pack
${OLYMPIC_PATH}/applib/applib.cpp
)
add_executable(nostalgia-pack)
target_link_libraries(
nostalgia-pack
KeelPack-AppLib
NostalgiaKeelModules
NostalgiaProfile
OlympicApplib
)
if(CMAKE_BUILD_TYPE STREQUAL "Release" AND NOT WIN32)

View File

@ -0,0 +1,9 @@
add_library(
OlympicApplib INTERFACE
)
target_sources(
OlympicApplib INTERFACE
applib.cpp
)