-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vascoguita
committed
Dec 9, 2020
1 parent
c2b4860
commit ac0474a
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |