We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d261a33 commit 45840c1Copy full SHA for 45840c1
.gitignore
@@ -1,6 +1,8 @@
1
testapp
2
testapp-clang
3
4
+build
5
+
6
# Prerequisites
7
*.d
8
CMakeLists.txt
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 3.10)
+set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD_REQUIRED True)
+# set the project name
+project(Tutorial)
9
+add_subdirectory(lib)
10
11
+# add the executable
12
+add_executable(TestApp testapp.cpp)
13
14
+target_link_libraries(TestApp PUBLIC TestLib)
lib/CMakeLists.txt
@@ -0,0 +1,6 @@
+set(CMAKE_CXX_STANDARD 11)
+add_library(TestLib SHARED Test.cpp)
0 commit comments