Skip to content

Commit

Permalink
- initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
janbender committed Feb 2, 2018
0 parents commit 1ec904b
Show file tree
Hide file tree
Showing 16 changed files with 3,412 additions and 0 deletions.
30 changes: 30 additions & 0 deletions CMake/Common.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_SOURCE_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_SOURCE_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${CMAKE_SOURCE_DIR}/bin")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL "${CMAKE_SOURCE_DIR}/bin")
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/lib)
set(CMAKE_DEBUG_POSTFIX "_d")
set(CMAKE_RELWITHDEBINFO_POSTFIX "_rd")
set(CMAKE_MINSIZEREL_POSTFIX "_ms")

if (WIN32)
set(CMAKE_USE_RELATIVE_PATHS "1")
# Set compiler flags for "release"
set(CMAKE_CXX_FLAGS_RELEASE "/MD /MP /Ox /Ob2 /Oi /Ot /fp:fast /D NDEBUG /openmp")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MP")
endif (WIN32)

if (UNIX)
set(CMAKE_USE_RELATIVE_PATHS "1")
# Set compiler flags for "release"
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -fopenmp")
endif (UNIX)

if(APPLE)
set(CMAKE_MACOSX_RPATH 1)
endif()

add_definitions(-D_CRT_SECURE_NO_DEPRECATE)

set(CMAKE_CXX_STANDARD 11)
19 changes: 19 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.0)

project(GenericParameters)

set(PROJECT_PATH ${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR})

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

include(${PROJECT_PATH}/CMake/Common.cmake)

add_subdirectory(GenericParameters)

if(NOT GENERICPARAMETERS_NO_TESTS)
add_subdirectory(Tests)
endif()


3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1.0.0

- Initial release
Loading

0 comments on commit 1ec904b

Please sign in to comment.