Pārlūkot izejas kodu

Moved CMakeLists file to root directory

- moved cmake file to root directory to offer
possibility to add test folder later
- extended .gitignore file
Patrick 4 gadi atpakaļ
vecāks
revīzija
f973f28bc6
3 mainītis faili ar 18 papildinājumiem un 16 dzēšanām
  1. 2 0
      .gitignore
  2. 16 0
      CMakeLists.txt
  3. 0 16
      source/CMakeLists.txt

+ 2 - 0
.gitignore

@@ -1 +1,3 @@
 .idea
+cmake-build-debug
+cmake-build-release

+ 16 - 0
CMakeLists.txt

@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 3.17)
+set(PROJECT_NAME ls_std)
+project(${PROJECT_NAME})
+
+set(CMAKE_CXX_STANDARD 11)
+
+set(SOURCE_FILES
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/boxing/Integer.hpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/base/Class.hpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/base/Class.cpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/boxing/Integer.cpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/boxing/IBoxing.hpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/exception/IllegalOperationException.hpp
+        ${CMAKE_CURRENT_SOURCE_DIR}/source/base/Types.hpp)
+
+add_library(${PROJECT_NAME} ${SOURCE_FILES})

+ 0 - 16
source/CMakeLists.txt

@@ -1,16 +0,0 @@
-cmake_minimum_required(VERSION 3.17)
-set(PROJECT_NAME ls_std)
-project(${PROJECT_NAME})
-
-set(CMAKE_CXX_STANDARD 11)
-
-set(SOURCE_FILES
-        ${CMAKE_CURRENT_SOURCE_DIR}/boxing/Integer.hpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/base/Class.hpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/base/Class.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/boxing/Integer.cpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/boxing/IBoxing.hpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/exception/IllegalOperationException.hpp
-        ${CMAKE_CURRENT_SOURCE_DIR}/base/Types.hpp)
-
-add_library(${PROJECT_NAME} ${SOURCE_FILES})