Merges the lib and include dir
This commit is contained in:
parent
fcf5765cb5
commit
26e0a2ccb7
7 changed files with 5 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
||||||
project(Genetics)
|
project(Genetics)
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
include_directories("${PROJECT_SOURCE_DIR}/include/")
|
|
||||||
add_definitions(-std=c++1y)
|
add_definitions(-std=c++1y)
|
||||||
|
|
||||||
find_package(Boost REQUIRED COMPONENTS filesystem program_options serialization system)
|
find_package(Boost REQUIRED COMPONENTS filesystem program_options serialization system)
|
||||||
|
@ -9,6 +8,5 @@ include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
|
||||||
set(libs ${libs} ${Boost_LIBRARIES})
|
set(libs ${libs} ${Boost_LIBRARIES})
|
||||||
|
|
||||||
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
add_subdirectory("include")
|
|
||||||
add_subdirectory("lib")
|
add_subdirectory("lib")
|
||||||
add_subdirectory("src")
|
add_subdirectory("src")
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
|
|
||||||
# Hack to show headers in Qt Creator
|
|
||||||
file(GLOB headers "*.hpp")
|
|
||||||
add_library(dummy ${headers} dummy.cpp)
|
|
|
@ -1,2 +0,0 @@
|
||||||
// Needed for the hack to show headers in Qt Creator
|
|
||||||
static int x = x;
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
file(GLOB sources "*.cpp")
|
file(GLOB sources "*.cpp")
|
||||||
add_library(common STATIC ${sources})
|
file(GLOB headers "*.hpp")
|
||||||
|
add_library(common ${headers} ${sources})
|
||||||
target_link_libraries(common ${libs})
|
target_link_libraries(common ${libs})
|
||||||
|
target_include_directories(common INTERFACE ".")
|
||||||
|
|
|
@ -19,6 +19,7 @@ struct Gen {
|
||||||
kAdd,
|
kAdd,
|
||||||
kSub,
|
kSub,
|
||||||
kMult,
|
kMult,
|
||||||
|
kMod,
|
||||||
kDiv,
|
kDiv,
|
||||||
kPow,
|
kPow,
|
||||||
kTypes
|
kTypes
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
// I needed a safe division in order to avoid SIGFPE
|
// I needed a safe division in order to avoid SIGFPE
|
||||||
int divi(int x, int y);
|
int divi(int x, int y);
|
||||||
|
int modi(int x, int y);
|
||||||
|
|
||||||
// Integer power function
|
// Integer power function
|
||||||
int powi(int base, int exp);
|
int powi(int base, int exp);
|
Reference in a new issue