-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1ec904b
Showing
16 changed files
with
3,412 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
1.0.0 | ||
|
||
- Initial release |
Oops, something went wrong.