Added base files
This commit is contained in:
parent
31462c6d8b
commit
6844874c01
2
.gitignore
vendored
2
.gitignore
vendored
@ -32,3 +32,5 @@
|
||||
*.out
|
||||
*.app
|
||||
|
||||
# Extras
|
||||
build
|
||||
|
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal 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
6
src/CMakeLists.txt
Normal 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
0
src/n-queens.cpp
Normal file
7
test/CMakeLists.txt
Normal file
7
test/CMakeLists.txt
Normal 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
0
test/test.cpp
Normal file
Loading…
Reference in New Issue
Block a user