Skip to content

Commit

Permalink
Add install rules to CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoguita committed Dec 9, 2020
1 parent c2b4860 commit ac0474a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.5)
project(IBME)

file(GLOB SOURCES src/* include/*)
file(GLOB SRC src/*)
file(GLOB INC include/*)

add_library(ibme ${SOURCES})
add_library(ibme STATIC ${SRC} ${INC})

target_include_directories(ibme PUBLIC include)
target_link_libraries(ibme pbc gmp crypto)
#target_link_libraries(ibme)

add_subdirectory(demo)
install(TARGETS ibme DESTINATION lib)
install(FILES ${INC} DESTINATION include/ibme)

add_subdirectory(demo)
2 changes: 1 addition & 1 deletion demo/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
add_executable (demo demo.c demo.h)

target_link_libraries (demo LINK_PUBLIC ibme)
target_link_libraries (demo LINK_PUBLIC ibme pbc gmp crypto)

0 comments on commit ac0474a

Please sign in to comment.