diff --git a/prompts/1-2DSimple b/prompts/1-2DSimple new file mode 100644 index 0000000..2cab026 --- /dev/null +++ b/prompts/1-2DSimple @@ -0,0 +1,3 @@ +This is the start of a high performant c++ Wave Function Collapse repo for n-dimensions. To increase performance we want to avoid using a large memory footprint, virtual polymoprhism, etc. + +For now we want to make it possible to use and test WFC with 2 dimensions, but later on we'll want to use 3D or even 4D. Please implement the algorithm with 2 dimensions for now. use the console for outputting tests. \ No newline at end of file diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bfbae29..344123d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,21 +1,20 @@ -set(SOURCES +# Create interface library (header-only) +add_library(nd-wfc INTERFACE) -) +# Create main executable +add_executable(nd-wfc-main main.cpp) -set(HEADERS - -) - -# Create library -add_library(nd-wfc ${SOURCES} ${HEADERS}) - -# Include directories +# Include directories for interface library target_include_directories(nd-wfc - PUBLIC + INTERFACE $ $ +) + +# Include directories for main executable +target_include_directories(nd-wfc-main PRIVATE - ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/../include ) # Link external dependencies