Update CMakeLists to use it as subproject
This commit is contained in:
@ -1132,11 +1132,15 @@ if(MSVC)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(unicorn
|
target_link_libraries(unicorn PRIVATE
|
||||||
${UNICORN_LINK_LIBRARIES}
|
${UNICORN_LINK_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_target_properties(unicorn PROPERTIES
|
||||||
|
VERSION "${UNICORN_VERSION_MAJOR}.${UNICORN_VERSION_MINOR}"
|
||||||
|
)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(unicorn
|
target_link_libraries(unicorn PRIVATE
|
||||||
${UNICORN_LINK_LIBRARIES}
|
${UNICORN_LINK_LIBRARIES}
|
||||||
m
|
m
|
||||||
)
|
)
|
||||||
@ -1200,6 +1204,10 @@ else()
|
|||||||
endforeach(TEST_FILE)
|
endforeach(TEST_FILE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(unicorn PUBLIC
|
||||||
|
include
|
||||||
|
)
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
include("GNUInstallDirs")
|
include("GNUInstallDirs")
|
||||||
file(GLOB UNICORN_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/unicorn/*.h)
|
file(GLOB UNICORN_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/unicorn/*.h)
|
||||||
|
Reference in New Issue
Block a user