Compare commits
2 Commits
31462c6d8b
...
6bc27166b8
Author | SHA1 | Date | |
---|---|---|---|
6bc27166b8 | |||
6844874c01 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -32,3 +32,5 @@
|
||||
*.out
|
||||
*.app
|
||||
|
||||
# Extras
|
||||
build
|
||||
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "test/Unity"]
|
||||
path = test/Unity
|
||||
url = https://github.com/ThrowTheSwitch/Unity.git
|
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)
|
1
test/Unity
Submodule
1
test/Unity
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit cb03c3afa777b004a809f72535648a475c84a6e1
|
0
test/test.cpp
Normal file
0
test/test.cpp
Normal file
Loading…
Reference in New Issue
Block a user