Restructure source listings for automatic fill-in
MODIFY
CMakeLists.txt
CMakeLists.txt
@@ -33,8 +33,7 @@ set(CMAKE_CXX_EXTENSIONS ON)
# lcf library files
add_library(lcf)
-target_sources(lcf
- PRIVATE
+set(LCF_SOURCES
src/data.cpp
src/encoder.cpp
src/ini.cpp
@@ -283,10 +282,11 @@ set(LCF_HEADERS
src/generated/lcf/rpg/variable.h
)
+list(TRANSFORM LCF_SOURCES PREPEND ${CMAKE_CURRENT_SOURCE_DIR}/)
list(TRANSFORM LCF_HEADERS PREPEND ${CMAKE_CURRENT_SOURCE_DIR}/)
list(APPEND LCF_HEADERS ${CMAKE_CURRENT_BINARY_DIR}/src/lcf/config.h)
-target_sources(lcf PUBLIC ${LCF_HEADERS})
+target_sources(lcf PRIVATE ${LCF_SOURCES} PUBLIC ${LCF_HEADERS})
# IDE source grouping
foreach(SG LDB LMT LMU LSD RPG)

MODIFY
Makefile.am
Makefile.am
@@ -198,8 +198,6 @@ liblcf_la_SOURCES = \
src/generated/rpg_trooppagecondition.cpp \
src/generated/rpg_variable.cpp
-nodist_lcfinclude_HEADERS = autogen/lcf/config.h
-
lcfinclude_HEADERS = \
src/lcf/data.h \
src/lcf/encoder.h \
@@ -299,6 +297,8 @@ lcfrpginclude_HEADERS = \
src/generated/lcf/rpg/trooppagecondition.h \
src/generated/lcf/rpg/variable.h
+nodist_lcfinclude_HEADERS = autogen/lcf/config.h
+
check_PROGRAMS = test_runner
test_runner_SOURCES = \
tests/doctest.h \

Restructure source listings for automatic fill-in