this is my project structure before compile
~/proj/CMakeLists.txt
~/proj/src/CMakeLists.txt
~/proj/src/main.cpp
~/proj/build/
proj/CMakeList.txt
cmake_minimum_required(VERSION 3.10)
project(test)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include_directories(/usr/local/include)
add_subdirectory(src)
proj/src/CMakeList.txt
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
add_executable(test main.cpp)
set(GL_LIBRARIES OpenGL::GL GLUT::GLUT)
target_link_libraries(test ${GL_LIBRARIES})
build/compile_command.json
[
{
"directory": "/home/hanslu95/proj/src",
"command": "/usr/bin/c++ -isystem /usr/local/include -o CMakeFiles/test.dir/main.cpp.o -c /home/hanslu95/proj/src/main.cpp",
"file": "/home/hanslu95/proj/src/main.cpp",
"output": "src/CMakeFiles/test.dir/main.cpp.o"
}
]
compile_command.json
[
{
"directory": "/home/hanslu95/proj/src",
"command": "/usr/bin/c++ -isystem /usr/local/include -o CMakeFiles/test.dir/main.cpp.o -c /home/hanslu95/proj/src/main.cpp",
[
{
"directory": "/home/hanslu95/proj/build/src",
"command": "/usr/bin/c++ -isystem /usr/local/include -o CMakeFiles/test.dir/main.cpp.o -c /home/hanslu95/proj/src/main.cpp",
"file": "/home/hanslu95/proj/src/main.cpp",
"output": "src/CMakeFiles/test.dir/main.cpp.o"
}
]
Learn More →
a web service that enables Amazon Web Services (AWS) customers to manage users and user permissions in AWS
Feb 11, 2025A capability is a file descriptor that has been extended to possess rights.
Aug 18, 2024Three modes of transfer are currently supported: netascii (This isascii as defined in "USA Standard Code for Information Interchange"[1] with the modifications specified in "Telnet ProtocolSpecification" [3].) Note that it is 8 bit ascii. The term"netascii" will be used throughout this document to mean thisparticular version of ascii.); octet (This replaces the "binary" modeof previous versions of this document.) raw 8 bit bytes; mail,netascii characters sent to a user rather than a file. (The mailmode is obsolete and should not be implemented or used.) Additionalmodes can be defined by pairs of cooperating hosts.
Aug 10, 2024This the first week of google summer of code.
Jul 20, 2024or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up