mirror of
https://github.com/USCiLab/cereal.git
synced 2025-07-20 18:02:02 +02:00

* cleanup cmake files to be a little more moderen keep the source tree free of build artifacts cmakelint the cmake files too * fix cmake setup errors on CI fix APPLE clang builds too * CI needs support for realy history cmake V3.6 fix typo in cmake files using add_test() commnds * One step more to use modern cmake Prevent to modifiy compile and linker FLAGS and to set global includes pathes * fix CI build problems with older cmake versions prepare cleanup cmake list file * final cleanup use Config.cmake.in and install hole cmake config files * Fix cpp17 PORTABILITY_TEST linker problem add missed target_link_libraries() * hopefully prevent windows test problems
23 lines
807 B
CMake
23 lines
807 B
CMake
add_subdirectory(sandbox_shared_lib)
|
|
|
|
add_executable(sandbox sandbox.cpp)
|
|
target_link_libraries(sandbox ${CEREAL_THREAD_LIBS})
|
|
|
|
add_executable(sandbox_json sandbox_json.cpp)
|
|
target_link_libraries(sandbox_json ${CEREAL_THREAD_LIBS})
|
|
|
|
add_executable(sandbox_rtti sandbox_rtti.cpp)
|
|
target_link_libraries(sandbox_rtti ${CEREAL_THREAD_LIBS})
|
|
|
|
add_executable(sandbox_vs sandbox_vs.cpp)
|
|
target_link_libraries(sandbox_vs sandbox_vs_dll)
|
|
|
|
if(Boost_FOUND AND NOT SKIP_PERFORMANCE_COMPARISON)
|
|
add_executable(performance performance.cpp)
|
|
if(MSVC)
|
|
set_target_properties(performance PROPERTIES COMPILE_DEFINITIONS "BOOST_SERIALIZATION_DYN_LINK")
|
|
endif()
|
|
target_include_directories(performance PUBLIC ${Boost_INCLUDE_DIRS})
|
|
target_link_libraries(performance ${CEREAL_THREAD_LIBS} ${Boost_LIBRARIES})
|
|
endif()
|