mirror of
https://gitlab.com/manzerbredes/pgnp.git
synced 2025-04-30 08:27:45 +00:00
Create project
This commit is contained in:
commit
fd78f92863
10 changed files with 21790 additions and 0 deletions
15
CMakeLists.txt
Normal file
15
CMakeLists.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(pgnp)
|
||||
|
||||
# Shared library
|
||||
add_library(pgnp SHARED src/pgnp.cpp)
|
||||
|
||||
# Includes
|
||||
set(PGNP_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/includes) # For conveniance
|
||||
set(PGNP_INCLUDE_DIR ${PGNP_INCLUDE_DIR} PARENT_SCOPE) # To be used by other projects with add_subdirectory()
|
||||
file(MAKE_DIRECTORY ${PGNP_INCLUDE_DIR})
|
||||
configure_file(src/pgnp.hpp ${PGNP_INCLUDE_DIR} COPYONLY)
|
||||
|
||||
# Unit tests
|
||||
enable_testing()
|
||||
add_subdirectory(./tests)
|
Loading…
Add table
Add a link
Reference in a new issue