cmake_minimum_required(VERSION 3.7 FATAL_ERROR) # --------------------------------------------------------------------------- # Test Project # --------------------------------------------------------------------------- project(Test LANGUAGES CXX C ) # specify the C++ standard set(CMAKE_CXX_STANDARD_REQUIRED True) # Generates the test runner add_executable(Test ${CMAKE_SOURCE_DIR}/src/test.cpp ${CMAKE_SOURCE_DIR}/src/features.cpp ${CMAKE_SOURCE_DIR}/src/platform_linux.c ) target_include_directories(Test PRIVATE ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/include ) # Generates the getplatform bin add_executable(GetPlatform ${CMAKE_SOURCE_DIR}/src/main.c ${CMAKE_SOURCE_DIR}/src/platform_linux.c ) target_include_directories(GetPlatform PRIVATE ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/include )