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)
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
include_directories("${PROJECT_SOURCE_DIR}/include/")
|
||||
add_definitions(-std=c++1y)
|
||||
|
||||
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 (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||
add_subdirectory("include")
|
||||
add_subdirectory("lib")
|
||||
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")
|
||||
add_library(common STATIC ${sources})
|
||||
file(GLOB headers "*.hpp")
|
||||
add_library(common ${headers} ${sources})
|
||||
target_link_libraries(common ${libs})
|
||||
target_include_directories(common INTERFACE ".")
|
||||
|
|
|
@ -19,6 +19,7 @@ struct Gen {
|
|||
kAdd,
|
||||
kSub,
|
||||
kMult,
|
||||
kMod,
|
||||
kDiv,
|
||||
kPow,
|
||||
kTypes
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
// I needed a safe division in order to avoid SIGFPE
|
||||
int divi(int x, int y);
|
||||
int modi(int x, int y);
|
||||
|
||||
// Integer power function
|
||||
int powi(int base, int exp);
|
Reference in a new issue