Browse Source

build: CMake directory structure

legacy
dnomd343 2 years ago
parent
commit
a98529c681
  1. 5
      CMakeLists.txt
  2. 0
      include/case.h
  3. 0
      include/common.h
  4. 0
      include/klotski.h
  5. 7
      src/CMakeLists.txt
  6. 0
      src/case.cc
  7. 0
      src/common.cc
  8. 0
      src/klotski.cc
  9. 0
      src/main.cc

5
CMakeLists.txt

@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.0)
project(klotski)
set(CMAKE_CXX_STANDARD 14)
project(klotski)
add_executable(klotski main.cc case.cc common.cc klotski.cc)
add_subdirectory(src)

0
case.h → include/case.h

0
common.h → include/common.h

0
klotski.h → include/klotski.h

7
src/CMakeLists.txt

@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_STANDARD 14)
include_directories(${PROJECT_SOURCE_DIR}/include)
aux_source_directory(${PROJECT_SOURCE_DIR}/src SRC)
add_executable(klotski ${SRC})

0
case.cc → src/case.cc

0
common.cc → src/common.cc

0
klotski.cc → src/klotski.cc

0
main.cc → src/main.cc

Loading…
Cancel
Save