Skip to content

Commit eb49ad0

Browse files
committed
refactoring to build source only, not tests
1 parent f55062a commit eb49ad0

23 files changed

+107
-92
lines changed

CMakeLists.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
cmake_minimum_required(VERSION 3.30)
2+
3+
# CMAKE_OSX_SYSROOT is a macOS-specific setting that specifies the SDK path.
4+
# This is ignored on non-Apple platforms, so it's safe to include in cross-platform builds.
5+
execute_process(
6+
COMMAND xcrun --show-sdk-path
7+
OUTPUT_VARIABLE CMAKE_OSX_SYSROOT
8+
OUTPUT_STRIP_TRAILING_WHITESPACE
9+
)
10+
211
project(BacktestingEngine)
312

413
# Set the C++ standard
514
set(CMAKE_CXX_STANDARD 20)
615
set(CMAKE_CXX_STANDARD_REQUIRED ON)
716

17+
818
# Configure libpqxx build
919
set(PQXX_LIBRARIES_INSTALL ON)
1020
set(SKIP_BUILD_TEST ON)
@@ -23,12 +33,12 @@ set(CMAKE_INSTALL_MESSAGE NEVER)
2333
set(CMAKE_MESSAGE_LOG_LEVEL "WARNING")
2434

2535
# Build libpqxx from source
26-
add_subdirectory(external/libpqxx)
36+
add_subdirectory(external/libpqxx EXCLUDE_FROM_ALL)
2737

2838
# Include directories
2939
include_directories(
3040
${CMAKE_SOURCE_DIR}/source/include
31-
${CMAKE_SOURCE_DIR}/source/include/strategy
41+
${CMAKE_SOURCE_DIR}/source/include/trading_definitions
3242
${CMAKE_SOURCE_DIR}/external
3343
)
3444

backtesting-engine-cpp.xcodeproj/project.pbxproj

Lines changed: 60 additions & 60 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// This code is licensed under MIT license (see LICENSE.txt for details)
55
// ---------------------------------------
66

7-
#include "Application.hpp"
7+
#include "application.hpp"
88

99
int Application::addNumbers(const std::vector<int>& numbers) {
1010
int sum = 0;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// This code is licensed under MIT license (see LICENSE.txt for details)
55
// ---------------------------------------
66

7-
#include "ConfigManager.hpp"
7+
#include "configManager.hpp"
88
#include <iostream>
99

1010
std::shared_ptr<ConfigManager> ConfigManager::instance = nullptr;

0 commit comments

Comments
 (0)