diff --git a/.gitignore b/.gitignore index 3ca783d..14d94a4 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,8 @@ cmake-build-debug *~ *.out *.save +/bin +/CMakeFiles +CMakeCache.txt +cmake_install.cmake +Makefile diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c1cfd1..87b88f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,10 @@ project(C/C++) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14") +# These are the corresponding output paths +set (EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin) +set (LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}) + add_executable(01_ENV_MP 01_ENV/MP/main.c 01_ENV/MP/func1.c) target_link_libraries(01_ENV_MP m) add_executable(01_ENV_Testat 01_ENV/Testat/main.c 01_ENV/Testat/func1.c) @@ -35,4 +39,4 @@ add_executable(07_STD_Testat 07_STD/Testat/grundgeruest.cpp) #add_executable(Banking 10_PITF/MP/banking_base_rawptr.cpp) -add_executable(Test 11_PUTT/Test.cpp) \ No newline at end of file +add_executable(Test 11_PUTT/Test.cpp)