diff options
| author | J08nY | 2017-02-06 04:20:56 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-06 04:20:56 +0100 |
| commit | 96bf13d11b595aabf514c706adcf57aefc660a1f (patch) | |
| tree | 995e149e650bc4981bb8ca05862a028be03a7827 /CMakeLists.txt | |
| parent | 763fc80153c5e9287f1b0f0609b11fb4f50c90ab (diff) | |
| download | ecgen-96bf13d11b595aabf514c706adcf57aefc660a1f.tar.gz ecgen-96bf13d11b595aabf514c706adcf57aefc660a1f.tar.zst ecgen-96bf13d11b595aabf514c706adcf57aefc660a1f.zip | |
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b0c5410..5e53579 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,10 @@ cmake_minimum_required(VERSION 2.8.11) project(ecgen) -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall") +set(CMAKE_LIBRARY_PATH ${CMAKE_SOURCE_DIR}/lib) + +SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -Wall") +SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -Wall") add_custom_command( OUTPUT gp.c gp.h @@ -14,10 +17,12 @@ add_custom_command( add_custom_target(gp2c ALL DEPENDS gp.c gp.h) include_directories(src) +include_directories(lib) file(GLOB SOURCES "src/*.c") add_executable(ecgen ${SOURCES}) -add_dependencies(ecgen gp2c) -target_link_libraries(ecgen pari)
\ No newline at end of file +target_link_libraries(ecgen pari) +find_library(parson parson/libparson.a) +target_link_libraries(ecgen ${parson})
\ No newline at end of file |
