-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (21 loc) · 929 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (21 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.5)
project(Secure_Programming)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_FLAGS "-g")
#Otemplate preparing
add_custom_command(
OUTPUT otemplates COMMAND
sh ${CMAKE_SOURCE_DIR}/buildtools/otemplate.sh
)
# Set the output folder where your program will be created
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/build)
set(PROJECT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/src)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
# Copy the assets files into the build directory
#file(COPY "src/assets" DESTINATION "${CMAKE_BINARY_DIR}")
include_directories("${PROJECT_SOURCE_DIR}/include")
file(GLOB TEMPLATES ${PROJECT_SOURCE_DIR}/templates/*.c)
file(GLOB SOURCES "${PROJECT_SOURCE_DIR}/lib/*.c")
add_executable(Secure_Programming ${PROJECT_SOURCE_DIR}/main.c ${SOURCES} ${TEMPLATES} otemplates)
target_link_libraries(${PROJECT_NAME} sqlite3 onion sodium)