[olympic,nostalgia] Make Applib an interface library that publicly exports applib.cpp
This commit is contained in:
parent
debeb83119
commit
a1de7fbd8a
@ -1,6 +1,4 @@
|
||||
include_directories(".")
|
||||
|
||||
set(OLYMPIC_PATH "${CMAKE_CURRENT_SOURCE_DIR}/olympic")
|
||||
|
||||
add_subdirectory(nostalgia)
|
||||
add_subdirectory(olympic)
|
||||
|
@ -18,7 +18,7 @@ void registerStudioModules() noexcept {
|
||||
}
|
||||
modulesRegistered = true;
|
||||
studio::registerModule(core::studioModule());
|
||||
studio::registerModule(scene::studioModule());
|
||||
//studio::registerModule(scene::studioModule());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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(
|
||||
|
@ -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)
|
||||
|
@ -0,0 +1,9 @@
|
||||
|
||||
add_library(
|
||||
OlympicApplib INTERFACE
|
||||
)
|
||||
|
||||
target_sources(
|
||||
OlympicApplib INTERFACE
|
||||
applib.cpp
|
||||
)
|
Loading…
Reference in New Issue
Block a user