cmake_minimum_required(VERSION 3.29) project(Demo1) set(CMAKE_CXX_STANDARD 17) # Set the architecture (assuming you're passing the architecture as a CMake variable) # Replace 'x64' with your system's architecture, or set this dynamically based on the system if(NOT DEFINED ARCH) set(ARCH x64) # You can change this to x86 or any other architecture you are targeting endif() # Set common output directories set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/intermediates/${ARCH}/${PROJECT_NAME}) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/${ARCH}/${PROJECT_NAME}) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/${ARCH}/${PROJECT_NAME}) add_executable(${PROJECT_NAME} src/main.cpp) target_link_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/ConjureEngine) target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS} ConjureEngine) target_include_directories(${PROJECT_NAME} PRIVATE include) target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/ConjureEngine/src)