feat: preparing for initialise-template justfile
This commit is contained in:
parent
3caee7f547
commit
333b2b8433
|
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.28)
|
||||
|
||||
project(low-level_setup
|
||||
project(project
|
||||
VERSION 1.0
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
|
|
|||
3
justfile
Normal file
3
justfile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
initialise-template projectname:
|
||||
sed "s/project/{{projectname}}/" ./CMakeLists.txt ./src/CMakeLists.txt
|
||||
mv ./src/project.cpp ./src/{{projectname}}.cpp
|
||||
|
|
@ -1,15 +1,14 @@
|
|||
set(low-level_setup PROPERTIES
|
||||
set(project PROPERTIES
|
||||
CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/../bin"
|
||||
CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/../lib"
|
||||
CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/../lib"
|
||||
)
|
||||
|
||||
add_executable(low-level_setup
|
||||
main.cpp
|
||||
project.cpp
|
||||
)
|
||||
file(GLOB_RECURSE SOURCE_FILES *.cpp)
|
||||
|
||||
target_link_libraries(low-level_setup
|
||||
add_executable(project ${SOURCE_FILES})
|
||||
|
||||
target_link_libraries(project
|
||||
PUBLIC
|
||||
ImGui-SFML::ImGui-SFML
|
||||
ImGui-SFML::ImGui-SFML
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue