cmake_minimum_required(VERSION 3.16) project(ImageTest LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) add_executable(ImageTest main.cpp Libraries/kio/kio.h Libraries/kio/kio.cpp Libraries/cstrings/cstrings.h Libraries/cstrings/tempmem.h Libraries/unix/FD.h Libraries/cstrings/cstrings.cpp Libraries/cstrings/tempmem.cpp Libraries/unix/FD.cpp Libraries/kio/exceptions.cpp Libraries/kio/exceptions.h ) # add directories to 'include search path': target_include_directories(ImageTest PUBLIC ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}/Libraries ${CMAKE_CURRENT_LIST_DIR}/Libraries/unix ) include(GNUInstallDirs) install(TARGETS ImageTest LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} )