-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
24 lines (18 loc) · 1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 3.13)
project(LinuxMemory)
SET(PROJ_ROOT "${CMAKE_CURRENT_SOURCE_DIR}")
SET(PROJ_BIN ${PROJ_ROOT}/LinuxMemoryAPI/lib)
SET(PROJ_LIB ${PROJ_ROOT}/LinuxMemoryAPI/lib)
# default output directories
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJ_BIN})
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJ_BIN})
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${PROJ_BIN})
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJ_BIN})
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${PROJ_BIN})
SET(CAMKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${PROJ_BIN})
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJ_LIB})
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${PROJ_LIB})
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${PROJ_LIB})
set(CMAKE_C_STANDARD 11)
add_library(LinuxMemory SHARED src/LinuxMemoryAPI/LinuxMemory.c src/LinuxMemoryAPI/LinuxMemory.h)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/LinuxMemoryAPI/LinuxMemory.h ${CMAKE_SOURCE_DIR}/LinuxMemoryAPI/include/LinuxMemory.h COPYONLY)