Commit 66069a50 authored by XueShuming's avatar XueShuming
Browse files

add version info

parent 92fe9a24
......@@ -25,6 +25,7 @@ hiacejs_run
node_test
*.pc
.build
*.so.*
#log
......
......@@ -44,7 +44,7 @@
cmake_minimum_required(VERSION 3.10)
project(hidomlayout)
project(hidomlayout VERSION 1.0.0)
#add_definitions(-D_DEBUG)
......@@ -69,8 +69,10 @@ list(APPEND hidomlayout_SOURCES
include_directories(${hidomlayout_INCLUDE_DIRECTORIES} ${GLIB_INCLUDE_DIRS})
link_directories(${GLIB_LIBRARIES})
add_library(hidomlayout SHARED ${hidomlayout_SOURCES})
set_target_properties(hidomlayout PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
target_link_libraries(hidomlayout css)
configure_file(hidomlayout.pc.in hidomlayout.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/hidomlayout.pc DESTINATION lib/pkgconfig)
install(FILES ${CMAKE_SOURCE_DIR}/include/hidomlayout.h DESTINATION include)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment