diff --git a/CMakeLists.txt b/CMakeLists.txt index 41a813f76..fe22c0526 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 3.12..3.20) if(NOT CONSOLE_ONLY) add_subdirectory(libraries/fltk EXCLUDE_FROM_ALL) endif() -add_subdirectory(libraries/filename_formatter EXCLUDE_FROM_ALL) add_subdirectory(libraries/libgrapheme EXCLUDE_FROM_ALL) add_subdirectory(libraries/miniz EXCLUDE_FROM_ALL) add_subdirectory(libraries/physfs EXCLUDE_FROM_ALL) @@ -66,8 +65,10 @@ set(OBSIDIAN_SOURCE_FILES source/csg_spots.cc source/dm_extra.cc source/dm_prefab.cc + source/ff_main.cc source/g_doom.cc source/g_wolf.cc + source/lex.yy.c source/lib_argv.cc source/lib_tga.cc source/lib_util.cc @@ -130,8 +131,6 @@ if(NOT CONSOLE_ONLY) obsidian SYSTEM PRIVATE "${PROJECT_BINARY_DIR}/libraries/fltk" ) # Hack for FLTK 1.4 (for now) endif() -target_include_directories( - obsidian SYSTEM PRIVATE libraries/filename_formatter) target_include_directories(obsidian SYSTEM PRIVATE libraries/gif-h) target_include_directories(obsidian SYSTEM PRIVATE libraries/libgrapheme) target_include_directories(obsidian SYSTEM PRIVATE libraries/minilua) @@ -159,8 +158,7 @@ if(UNIX) if(NOT CONSOLE_ONLY) target_link_libraries( obsidian - PRIVATE filename_formatter - fltk + PRIVATE fltk fltk_images libgrapheme miniz @@ -172,15 +170,14 @@ if(UNIX) ) else() target_link_libraries( - obsidian PRIVATE filename_formatter libgrapheme miniz physfs-static + obsidian PRIVATE libgrapheme miniz physfs-static ) endif() elseif(${CMAKE_SYSTEM} MATCHES "BSD") if(NOT CONSOLE_ONLY) target_link_libraries( obsidian - PRIVATE filename_formatter - fltk + PRIVATE fltk fltk_images libgrapheme miniz @@ -188,15 +185,14 @@ if(UNIX) ) else() target_link_libraries( - obsidian PRIVATE filename_formatter libgrapheme miniz physfs-static + obsidian PRIVATE libgrapheme miniz physfs-static ) endif() else() if(NOT CONSOLE_ONLY) target_link_libraries( obsidian - PRIVATE filename_formatter - fltk + PRIVATE fltk fltk_images libgrapheme miniz @@ -207,8 +203,7 @@ if(UNIX) else() target_link_libraries( obsidian - PRIVATE filename_formatter - libgrapheme + PRIVATE libgrapheme miniz physfs-static pthread @@ -219,8 +214,7 @@ else() if(NOT CONSOLE_ONLY) target_link_libraries( obsidian - PRIVATE filename_formatter - fltk + PRIVATE fltk fltk_images libgrapheme miniz @@ -228,7 +222,7 @@ else() ) else() target_link_libraries( - obsidian PRIVATE filename_formatter libgrapheme miniz physfs-static + obsidian PRIVATE libgrapheme miniz physfs-static ) endif() endif() \ No newline at end of file diff --git a/libraries/filename_formatter/CMakeLists.txt b/libraries/filename_formatter/CMakeLists.txt deleted file mode 100644 index ea79d642d..000000000 --- a/libraries/filename_formatter/CMakeLists.txt +++ /dev/null @@ -1,19 +0,0 @@ -cmake_minimum_required(VERSION 3.16) -set(CMAKE_C_STANDARD 99) -set(CMAKE_CXX_STANDARD 11) - -project( - filename_formatter - VERSION 0.1.0 - LANGUAGES C CXX -) -add_library(${PROJECT_NAME} ${SOURCES} ff_main.cpp lex.yy.c) -if(WIN32) - target_compile_definitions(${PROJECT_NAME} PRIVATE _CRT_SECURE_NO_WARNINGS) -endif() -# Workaround for cross-compiling until I do something more elegant. Still need -# flex installed - Dasho -if(!MINGW) - find_package(FLEX REQUIRED) - target_link_libraries(${PROJECT_NAME} PRIVATE ${FLEX_LIBRARIES}) -endif() diff --git a/libraries/filename_formatter/ff.h b/source/ff.h similarity index 100% rename from libraries/filename_formatter/ff.h rename to source/ff.h diff --git a/libraries/filename_formatter/ff_main.cpp b/source/ff_main.cc similarity index 100% rename from libraries/filename_formatter/ff_main.cpp rename to source/ff_main.cc diff --git a/libraries/filename_formatter/ff_main.h b/source/ff_main.h similarity index 100% rename from libraries/filename_formatter/ff_main.h rename to source/ff_main.h diff --git a/libraries/filename_formatter/filename.l b/source/filename.l similarity index 100% rename from libraries/filename_formatter/filename.l rename to source/filename.l diff --git a/libraries/filename_formatter/lex.yy.c b/source/lex.yy.c similarity index 100% rename from libraries/filename_formatter/lex.yy.c rename to source/lex.yy.c diff --git a/libraries/filename_formatter/lex.yy.h b/source/lex.yy.h similarity index 100% rename from libraries/filename_formatter/lex.yy.h rename to source/lex.yy.h