Skip to content

Commit

Permalink
progress #15, cannot rm Version.h yet
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoPannetier committed Oct 20, 2023
1 parent 7c36ff7 commit bcde1db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 5 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
cmake_minimum_required(VERSION 3.10)

# set the project name and version
project(RangeShifter VERSION 2.1)
project(RangeShifter VERSION 2.1.0)

# specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# configure a header file to pass some of the CMake settings
# to the source code
#configure_file(TutorialConfig.h.in TutorialConfig.h)
# configure a header to pass preproc/CMake variables to source code
configure_file(Config.h.in Config.h)

# add RScore to source search path
add_subdirectory(src/RScore)

# add the executable
add_executable(RangeShifter src/main.cpp src/BatchMode.cpp src/Version.cpp)
add_executable(RangeShifter src/main.cpp src/BatchMode.cpp)

# link RScore to the executable as a library
target_link_libraries(RangeShifter PUBLIC RScore)

# add RScore as an include dir
target_include_directories(RangeShifter PUBLIC "${PROJECT_SOURCE_DIR}/RScore")
target_include_directories(RangeShifter PUBLIC "${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/RScore")
4 changes: 4 additions & 0 deletions Config.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#define RSDEBUG 1
#define LINUX_CLUSTER 1
#define RSWIN64 1
#define BATCH 1

0 comments on commit bcde1db

Please sign in to comment.