CmdParser icon indicating copy to clipboard operation
CmdParser copied to clipboard

Improve CMake for header only lib

Open pixout opened this issue 2 months ago • 0 comments

Would be great if you can improve CMake like the following:

cmake_minimum_required(VERSION 3.9)
project(cmdparser)

add_library( ${PROJECT_NAME} INTERFACE cmdparser.hpp)
target_include_directories( ${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})

This will allow easier to use your header only library in other projects.

pixout avatar Oct 03 '25 12:10 pixout