auto find cpp compiler

This commit is contained in:
Alfie King 2024-09-16 15:18:54 +01:00
parent 8d8f39a2ff
commit 729a4a0a0c

View File

@ -1,4 +1,6 @@
cmake_minimum_required(VERSION 3.5)
find_program(CMAKE_C_COMPILER NAMES $ENV{CC} gcc PATHS ENV PATH NO_DEFAULT_PATH)
find_program(CMAKE_CXX_COMPILER NAMES $ENV{CXX} g++ PATHS ENV PATH NO_DEFAULT_PATH)
project(owo)
add_executable(owo src/main.cpp)
add_subdirectory(src/clip-lib)