forked from USCiLab/cereal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup cmake files to be a little more moderen (USCiLab#659)
* 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
- Loading branch information
1 parent
d660791
commit 6e6fd8d
Showing
9 changed files
with
126 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@PACKAGE_INIT@ | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ if(DOXYGEN_FOUND) | |
COMMENT "Copying documentation to gh-pages branch" VERBATIM | ||
) | ||
|
||
endif(DOXYGEN_FOUND) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
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) | ||
include_directories(sandbox_shared_lib) | ||
|
||
if((Boost_FOUND) AND NOT SKIP_PERFORMANCE_COMPARISON) | ||
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_link_libraries(performance ${Boost_LIBRARIES}) | ||
target_include_directories(performance PUBLIC ${Boost_INCLUDE_DIRS}) | ||
target_link_libraries(performance ${CEREAL_THREAD_LIBS} ${Boost_LIBRARIES}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
add_library(sandbox_vs_dll SHARED base.cpp derived.cpp) | ||
target_link_libraries(sandbox_vs_dll ${CEREAL_THREAD_LIBS}) | ||
target_include_directories(sandbox_vs_dll PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> | ||
$<INSTALL_INTERFACE:include> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters