Skip to content
Permalink
Browse files
update submod to latest
  • Loading branch information
David committed May 8, 2019
1 parent 2e9aea4 commit 44647aab5b3d88eb0cb52ab397dc9538fd1ac156
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 32 deletions.
@@ -1,10 +1,14 @@
cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_STANDARD 14)



project(cppintro CXX)

# turns out that g++ will allow variable length arrays but I
# dont' want students getting dependant on non-standard features
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wvla -Werror=vla")

# limit number of errors shown to 1
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wfatal-errors")

# config directories
include_directories(${CMAKE_SOURCE_DIR})
@@ -22,34 +26,6 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin )
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)

#add_library(Testv SHARED test.cpp)

#add_library(GetInput INTERFACE)
#target_include_directories(Input INTERFACE ${CMAKE_SOURCE_DIR})

#add_executable( leap lab_leap.cpp )
#target_link_libraries( leap Testv )

#add_executable( hello lab_hello.cpp )

#add_executable( age lab_age.cpp )

#file(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/our_*.cpp")
#foreach(filename ${files})
# get_filename_component(EXEC ${filename} NAME_WE)
# string(REPLACE "lib_" "" LIBRARY ${EXEC})

# add_library(${LIBRARY} STATIC ${filename})
# install(TARGETS ${LIBRARY} DESTINATION /lib)
# install(FILES ${EXEC}.h DESTINATION /include)
#endforeach()

file(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/pre_*.cpp")
foreach(filename ${files})
get_filename_component(EXEC ${filename} NAME_WE)
add_executable(${EXEC} ${filename} ${HEADERS})
endforeach()

file(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/lab_*.cpp")
foreach(filename ${files})
get_filename_component(EXEC ${filename} NAME_WE)
@@ -33,7 +33,6 @@ foreach(filename ${files})
COMMAND ${TEST_RUNNER} )
endforeach()


file(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/test_*.py")
foreach(filename ${files})
# if test file is "test_thingy.py" then created test will be called "test_thingy"

0 comments on commit 44647aa

Please sign in to comment.