From 06f454d513635075e8cc740a065411724b194d61 Mon Sep 17 00:00:00 2001 From: lazymio Date: Sun, 7 Nov 2021 21:07:53 +0100 Subject: [PATCH] Update CMakeLists to use it as subproject --- CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 88e428d6..b94ec1fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1132,11 +1132,15 @@ if(MSVC) ) endif() - target_link_libraries(unicorn + target_link_libraries(unicorn PRIVATE ${UNICORN_LINK_LIBRARIES} ) + + set_target_properties(unicorn PROPERTIES + VERSION "${UNICORN_VERSION_MAJOR}.${UNICORN_VERSION_MINOR}" + ) else() - target_link_libraries(unicorn + target_link_libraries(unicorn PRIVATE ${UNICORN_LINK_LIBRARIES} m ) @@ -1200,6 +1204,10 @@ else() endforeach(TEST_FILE) endif() +target_include_directories(unicorn PUBLIC + include +) + if(NOT MSVC) include("GNUInstallDirs") file(GLOB UNICORN_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/unicorn/*.h)