asdf
This commit is contained in:
@@ -2,19 +2,28 @@ cmake_minimum_required(VERSION 3.9.1)
|
||||
project(flippr-driver)
|
||||
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") # enable C++11 standard
|
||||
|
||||
set(CMAKE_SOURCE_DIR ../src)
|
||||
|
||||
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
|
||||
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
||||
set(SOURCE_DIR ../src)
|
||||
|
||||
find_package(Threads)
|
||||
|
||||
<<<<<<< HEAD
|
||||
include_directories(../src/input)
|
||||
include_directories(output)
|
||||
include_directories(lib)
|
||||
include_directories(tests)
|
||||
=======
|
||||
include_directories(${SOURCE_DIR}/input)
|
||||
include_directories(${SOURCE_DIR}/output)
|
||||
include_directories(${SOURCE_DIR}/lib)
|
||||
include_directories(${SOURCE_DIR}/utilities)
|
||||
>>>>>>> 1f0fd916cc2f3e7edd60b5dc45f16f825c6f06db
|
||||
|
||||
file(GLOB SOURCES "src/*/*.cpp")
|
||||
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
project(cmake_test)
|
||||
|
||||
# Prepare "Catch" library for other executables
|
||||
set(CATCH_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../src/tests)
|
||||
add_library(Catch INTERFACE)
|
||||
target_include_directories(Catch INTERFACE ${CATCH_INCLUDE_DIR}/*)
|
||||
|
||||
# Make test executable
|
||||
set(TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/../../src/tests/input)
|
||||
include_directories(${TEST_SOURCES})
|
||||
include_directories(${TEST_SOURCES}/mocks)
|
||||
|
||||
file(GLOB SOURCES ${TEST_SOURCES}/*.cpp)
|
||||
add_executable(tests ${SOURCES})
|
||||
|
||||
target_link_libraries(tests Catch)
|
||||
Reference in New Issue
Block a user