Added base files

This commit is contained in:
TriantaTV 2023-09-14 14:26:08 -05:00
parent 31462c6d8b
commit 6844874c01
6 changed files with 34 additions and 0 deletions

2
.gitignore vendored
View File

@ -32,3 +32,5 @@
*.out
*.app
# Extras
build

19
CMakeLists.txt Normal file
View File

@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.10)
project(
n-queens
LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11 CACHE STRING "The C++ standard to use")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
include_directories(${proxy-network_SOURCE_DIR}/src)
add_subdirectory(src)
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
add_subdirectory(test)
endif()

6
src/CMakeLists.txt Normal file
View File

@ -0,0 +1,6 @@
add_executable(n-queens
./n-queens.cpp
)
target_include_directories(proxy-network PUBLIC ${CMAKE_CURRENT_LIST_DIR})

0
src/n-queens.cpp Normal file
View File

7
test/CMakeLists.txt Normal file
View File

@ -0,0 +1,7 @@
add_subdirectory(Unity)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
add_executable(testing
./test.cpp
)
set_target_properties(testing PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(testing unity)

0
test/test.cpp Normal file
View File