Just add the header files along with the source files:
PROJECT (Test)
ADD_EXECUTABLE(Test test.cpp test.h)
Or using variables:
PROJECT (Test)
SET(SOURCE
test.cpp
)
SET(HEADERS
test.h
)
ADD_EXECUTABLE(Test ${SOURCE} ${HEADERS})
Just add the header files along with the source files:
PROJECT (Test)
ADD_EXECUTABLE(Test test.cpp test.h)
Or using variables:
PROJECT (Test)
SET(SOURCE
test.cpp
)
SET(HEADERS
test.h
)
ADD_EXECUTABLE(Test ${SOURCE} ${HEADERS})