mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 18:30:27 +01:00
Merge pull request #20 from stevenc99/rdynamic
Export symbols of main executable to dynamic libs
This commit is contained in:
commit
8006012b90
|
@ -787,6 +787,8 @@ add_executable(ssam
|
||||||
SeriousSam/MenuPrinting.cpp
|
SeriousSam/MenuPrinting.cpp
|
||||||
)
|
)
|
||||||
add_dependencies(ssam ParseEntities)
|
add_dependencies(ssam ParseEntities)
|
||||||
|
# Make symbols in the main executable available to dynamic objects
|
||||||
|
set_target_properties(ssam PROPERTIES ENABLE_EXPORTS ON)
|
||||||
|
|
||||||
# !!! FIXME: this is an option because you have to recompile the entire engine twice.
|
# !!! FIXME: this is an option because you have to recompile the entire engine twice.
|
||||||
# !!! FIXME: If we can put the engine in a static library and not lose symbols,
|
# !!! FIXME: If we can put the engine in a static library and not lose symbols,
|
||||||
|
@ -795,6 +797,8 @@ option(BUILD_DEDICATED_SERVER "Compile the dedicated server, too" FALSE)
|
||||||
if(BUILD_DEDICATED_SERVER)
|
if(BUILD_DEDICATED_SERVER)
|
||||||
add_executable(SeriousSamDedicated ${ENGINE_SRCS} DedicatedServer/DedicatedServer.cpp)
|
add_executable(SeriousSamDedicated ${ENGINE_SRCS} DedicatedServer/DedicatedServer.cpp)
|
||||||
add_dependencies(SeriousSamDedicated ParseEntities)
|
add_dependencies(SeriousSamDedicated ParseEntities)
|
||||||
|
# Make symbols in the main executable available to dynamic objects
|
||||||
|
set_target_properties(SeriousSamDedicated PROPERTIES ENABLE_EXPORTS ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MACOSX)
|
if(MACOSX)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user