Add support for CMake (buildsystem generator) (#2468)

Co-authored-by: Edgar <Edgar@AnotherFoxGuy.com>
This commit is contained in:
pajlada
2021-03-28 16:58:51 +02:00
committed by GitHub
parent 093a088363
commit e00938dfde
28 changed files with 1354 additions and 107 deletions
+14
View File
@@ -0,0 +1,14 @@
include(FindPackageHandleStandardArgs)
find_path(PajladaSerialize_INCLUDE_DIR pajlada/serialize.hpp HINTS ${CMAKE_SOURCE_DIR}/lib/serialize/include)
find_package_handle_standard_args(PajladaSerialize DEFAULT_MSG PajladaSerialize_INCLUDE_DIR)
if (PajladaSerialize_FOUND)
add_library(Pajlada::Serialize INTERFACE IMPORTED)
set_target_properties(Pajlada::Serialize PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${PajladaSerialize_INCLUDE_DIR}"
)
endif ()
mark_as_advanced(PajladaSerialize_INCLUDE_DIR)