Skip to content

Commit

Permalink
Add CMakeLists.txt with install definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ewertons committed May 7, 2019
1 parent 809ef4b commit 74ea152
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
)

0 comments on commit 74ea152

Please sign in to comment.