Updated build env
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
file(GLOB EXAMPLE_DIRS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*)
|
||||
|
||||
foreach(dir ${EXAMPLE_DIRS})
|
||||
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${dir} AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/CMakeLists.txt)
|
||||
add_subdirectory(${dir})
|
||||
endif()
|
||||
endforeach()
|
||||
@@ -0,0 +1,3 @@
|
||||
add_executable(triangle main.cpp)
|
||||
|
||||
target_link_libraries(triangle PRIVATE ${PROJECT_NAME})
|
||||
@@ -0,0 +1,9 @@
|
||||
#include <sophia/application.hpp>
|
||||
|
||||
int main() {
|
||||
sophia::Application app{{.width = 800, .height = 600, .name = "Triangle"}};
|
||||
|
||||
app.run();
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user