mirror of
https://github.com/kgabis/parson.git
synced 2024-11-24 06:05:29 +00:00
Merge pull request #120 from ewertons/master
Add CMakeLists.txt with install definitions
This commit is contained in:
commit
33e5519d0a
24
CMakeLists.txt
Normal file
24
CMakeLists.txt
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
project(parson C)
|
||||||
|
|
||||||
|
add_library(parson parson.c)
|
||||||
|
target_include_directories(parson PUBLIC $<INSTALL_INTERFACE:include>)
|
||||||
|
|
||||||
|
set_target_properties(parson PROPERTIES PUBLIC_HEADER "parson.h")
|
||||||
|
|
||||||
|
install(
|
||||||
|
TARGETS parson
|
||||||
|
EXPORT parsonTargets
|
||||||
|
RUNTIME DESTINATION bin
|
||||||
|
LIBRARY DESTINATION lib
|
||||||
|
ARCHIVE DESTINATION lib
|
||||||
|
PUBLIC_HEADER DESTINATION include
|
||||||
|
)
|
||||||
|
|
||||||
|
install(
|
||||||
|
EXPORT parsonTargets
|
||||||
|
FILE parsonConfig.cmake
|
||||||
|
NAMESPACE parson::
|
||||||
|
DESTINATION cmake
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user