[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(".") include_directories(".")
set(OLYMPIC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/olympic")
add_subdirectory(nostalgia) add_subdirectory(nostalgia)
add_subdirectory(olympic) add_subdirectory(olympic)

View File

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

View File

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

View File

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